Mercurial > hg
diff contrib/shrink-revlog.py @ 10724:cb0a7faa29ea
progress: drop extra args for pos=None calls (issue2087)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 17 Mar 2010 18:15:16 -0500 |
parents | f63fb5c0cf67 |
children | f73baa069113 |
line wrap: on
line diff
--- a/contrib/shrink-revlog.py Wed Mar 17 15:36:48 2010 -0500 +++ b/contrib/shrink-revlog.py Wed Mar 17 18:15:16 2010 -0500 @@ -64,7 +64,7 @@ for p in parents[rev]: heads.discard(p) finally: - ui.progress(_('reading'), None, total=len(rl)) + ui.progress(_('reading'), None) heads = list(heads) heads.sort(reverse=True) @@ -90,7 +90,7 @@ if p2 != node.nullrev: children[p2].append(rev) finally: - ui.progress(_('reading'), None, total=len(rl)) + ui.progress(_('reading'), None) root = list(roots) roots.sort() @@ -120,7 +120,7 @@ chunkiter = changegroup.chunkiter(group) r2.addgroup(chunkiter, unlookup, tr) finally: - ui.progress(_('writing'), None, len(order)) + ui.progress(_('writing'), None) def report(ui, r1, r2): def getsize(r):