diff mercurial/localrepo.py @ 1492:5f0522d31967

Allow interrupting all parts of verify
author Matt Mackall <mpm@selenic.com>
date Wed, 02 Nov 2005 18:59:40 -0800
parents ae0d8d632b83
children 1a216cb4ee64
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))