# HG changeset patch # User mpm@selenic.com # Date 2005-08-27 22:09:46 # Node ID 1f89ccbab6ce0f375c7f379867770141bae78fbb # Parent ae4f1f48c5694b368b7189a78ea4373b4478c452 localrepo: adjust some imports, remove sys dependency diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -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 @@ class localrepository: 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))