Comments
Patch
@@ -693,11 +693,11 @@ def addchangegroupfiles(repo, source, re
(f, hex(n)))
return revisions, files
def addchangegroup(repo, source, srctype, url, emptyok=False,
- targetphase=phases.draft):
+ targetphase=phases.draft, expectedtotal=None):
"""Add the changegroup returned by source.read() to this repo.
srctype is a string like 'push', 'pull', or 'unbundle'. url is
the URL of the repo where this changegroup is coming from.
Return an integer summarizing the change to this repo:
@@ -742,11 +742,11 @@ def addchangegroup(repo, source, srctype
clstart = len(cl)
class prog(object):
step = _('changesets')
count = 1
ui = repo.ui
- total = None
+ total = expectedtotal
def __call__(repo):
repo.ui.progress(repo.step, repo.count, unit=_('chunks'),
total=repo.total)
repo.count += 1
pr = prog()