# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1263226350 -3600 # Node ID fa7aab230f1d0cfca220d7312393527196ea9b22 # Parent 60bf433647e71960e72032a4b9b81c3361400dbe wrappers: calculate and return exact count of changesets added. diff --git a/hgsubversion/wrappers.py b/hgsubversion/wrappers.py --- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -255,7 +255,7 @@ def pull(repo, source, heads=[], force=F raise hgutil.Abort('Revision skipping at repository initialization ' 'remains unimplemented.') - revisions = 0 + oldrevisions = len(meta.revmap) try: try: # start converting revisions @@ -302,12 +302,13 @@ def pull(repo, source, heads=[], force=F ui.status('Got a 502, retrying (%s)\n' % tries) else: raise hgutil.Abort(*e.args) - revisions += 1 except KeyboardInterrupt: pass finally: util.swap_out_encoding(old_encoding) + revisions = len(meta.revmap) - oldrevisions + if revisions == 0: ui.status(i18n._("no changes found\n")) return 0