changeset 1097:1f89ccbab6ce

localrepo: adjust some imports, remove sys dependency
author mpm@selenic.com
date Sat, 27 Aug 2005 15:09:46 -0700
parents ae4f1f48c569
children 50a0a36dd48a
files mercurial/localrepo.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Sat Aug 27 15:05:59 2005 -0700
+++ b/mercurial/localrepo.py	Sat Aug 27 15:09:46 2005 -0700
@@ -5,14 +5,14 @@
 # This software may be used and distributed according to the terms
 # of the GNU General Public License, incorporated herein by reference.
 
-import sys, struct, os, util
+import struct, os, util
 from repo import *
 from revlog import *
 from filelog import *
 from manifest import *
 from changelog import *
+from dirstate import *
 from demandload import *
-from dirstate import *
 demandload(globals(), "re lock transaction tempfile stat")
 
 class localrepository:
@@ -1323,8 +1323,8 @@
             try:
                 delta = mdiff.patchtext(self.manifest.delta(n))
             except KeyboardInterrupt:
-                self.ui.warn("aborted")
-                sys.exit(0)
+                self.ui.warn("interrupted")
+                raise
             except Exception, inst:
                 self.ui.warn("unpacking manifest %s: %s\n"
                              % (short(n), inst))