Mercurial > hgsubversion
changeset 891:83cc6e9e8425
kill all 'print' statements in the extension proper
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sat, 12 May 2012 15:41:21 +0200 |
parents | 78db88de9622 |
children | 295a8b48e4e2 |
files | hgsubversion/editor.py hgsubversion/maps.py |
diffstat | 2 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/editor.py +++ b/hgsubversion/editor.py @@ -364,7 +364,6 @@ class HgEditor(svnwrap.Editor): else: # pragma: no cover raise hgutil.Abort(*e.args) except: # pragma: no cover - print len(base), self.current.file self._exception_info = sys.exc_info() raise return txdelt_window
--- a/hgsubversion/maps.py +++ b/hgsubversion/maps.py @@ -135,8 +135,7 @@ class Tags(dict): svncommands.rebuildmeta(repo.ui, repo, ()) return elif ver != self.VERSION: - print 'tagmap too new -- please upgrade' - raise NotImplementedError + raise hgutil.Abort('tagmap too new -- please upgrade') for l in f: ha, revision, tag = l.split(' ', 2) revision = int(revision) @@ -228,8 +227,7 @@ class RevMap(dict): return iter([]) ver = int(f.readline()) if ver != cls.VERSION: - print 'revmap too new -- please upgrade' - raise NotImplementedError + raise hgutil.Abort('revmap too new -- please upgrade') return f def _load(self): @@ -361,8 +359,7 @@ class FileMap(object): f = open(self.path) ver = int(f.readline()) if ver != self.VERSION: - print 'filemap too new -- please upgrade' - raise NotImplementedError + raise hgutil.Abort('filemap too new -- please upgrade') self.load_fd(f, self.path) f.close()