Mercurial > hg-stable
diff mercurial/localrepo.py @ 14520:9d8d2fecb72e
localrepo: add total to changeset progress in bundle/push
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Fri, 03 Jun 2011 20:12:37 +0200 |
parents | 4f695345979c |
children | d27f669bad7c |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Jun 03 20:08:26 2011 +0200 +++ b/mercurial/localrepo.py Fri Jun 03 20:12:37 2011 +0200 @@ -1521,7 +1521,8 @@ changedfiles.update(c[3]) mfs.setdefault(c[0], x) count[0] += 1 - self.ui.progress(_('bundling'), count[0], unit=_('changesets')) + self.ui.progress(_('bundling'), count[0], + unit=_('changesets'), total=len(csets)) return x elif revlog == mf: clnode = mfs[x] @@ -1627,7 +1628,8 @@ changedfiles.update(c[3]) mfs.setdefault(c[0], x) count[0] += 1 - self.ui.progress(_('bundling'), count[0], unit=_('changesets')) + self.ui.progress(_('bundling'), count[0], + unit=_('changesets'), total=len(nodes)) return x elif revlog == mf: count[0] += 1