hgext/convert/convcmd.py
changeset 22411 c497e39d81a3
parent 22300 35ab037de989
child 24306 6ddc86eedc3b
--- a/hgext/convert/convcmd.py	Wed Sep 10 11:01:47 2014 -0400
+++ b/hgext/convert/convcmd.py	Mon May 26 11:53:12 2014 -0400
@@ -171,6 +171,7 @@
         visit = heads
         known = set()
         parents = {}
+        numcommits = self.source.numcommits()
         while visit:
             n = visit.pop(0)
             if n in known:
@@ -180,7 +181,8 @@
                 if m == SKIPREV or self.dest.hascommitfrommap(m):
                     continue
             known.add(n)
-            self.ui.progress(_('scanning'), len(known), unit=_('revisions'))
+            self.ui.progress(_('scanning'), len(known), unit=_('revisions'),
+                             total=numcommits)
             commit = self.cachecommit(n)
             parents[n] = []
             for p in commit.parents: