changeset 1492:5f0522d31967

Allow interrupting all parts of verify
author Matt Mackall <mpm@selenic.com>
date Wed, 02 Nov 2005 18:59:40 -0800
parents 91c0e8d7ddcf
children 1a216cb4ee64
files mercurial/localrepo.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Nov 02 16:13:41 2005 -0800
+++ b/mercurial/localrepo.py	Wed Nov 02 18:59:40 2005 -0800
@@ -1618,6 +1618,9 @@
                                  (short(n), short(p)))
             try:
                 changes = self.changelog.read(n)
+            except KeyboardInterrupt:
+                self.ui.warn(_("interrupted"))
+                raise
             except Exception, inst:
                 err(_("unpacking changeset %s: %s") % (short(n), inst))
 
@@ -1705,6 +1708,9 @@
                 # verify contents
                 try:
                     t = fl.read(n)
+                except KeyboardInterrupt:
+                    self.ui.warn(_("interrupted"))
+                    raise
                 except Exception, inst:
                     err(_("unpacking file %s %s: %s") % (f, short(n), inst))