Allow interrupting all parts of verify
authorMatt Mackall <mpm@selenic.com>
Wed, 02 Nov 2005 18:59:40 -0800
changeset 1492 5f0522d31967
parent 1491 91c0e8d7ddcf
child 1493 1a216cb4ee64
Allow interrupting all parts of verify
mercurial/localrepo.py
--- 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))