Show More
@@ -695,7 +695,7 b' def addchangegroupfiles(repo, source, re' | |||||
695 | return revisions, files |
|
695 | return revisions, files | |
696 |
|
696 | |||
697 | def addchangegroup(repo, source, srctype, url, emptyok=False, |
|
697 | def addchangegroup(repo, source, srctype, url, emptyok=False, | |
698 | targetphase=phases.draft): |
|
698 | targetphase=phases.draft, expectedtotal=None): | |
699 | """Add the changegroup returned by source.read() to this repo. |
|
699 | """Add the changegroup returned by source.read() to this repo. | |
700 | srctype is a string like 'push', 'pull', or 'unbundle'. url is |
|
700 | srctype is a string like 'push', 'pull', or 'unbundle'. url is | |
701 | the URL of the repo where this changegroup is coming from. |
|
701 | the URL of the repo where this changegroup is coming from. | |
@@ -744,7 +744,7 b' def addchangegroup(repo, source, srctype' | |||||
744 | step = _('changesets') |
|
744 | step = _('changesets') | |
745 | count = 1 |
|
745 | count = 1 | |
746 | ui = repo.ui |
|
746 | ui = repo.ui | |
747 |
total = |
|
747 | total = expectedtotal | |
748 | def __call__(repo): |
|
748 | def __call__(repo): | |
749 | repo.ui.progress(repo.step, repo.count, unit=_('chunks'), |
|
749 | repo.ui.progress(repo.step, repo.count, unit=_('chunks'), | |
750 | total=repo.total) |
|
750 | total=repo.total) |
General Comments 0
You need to be logged in to leave comments.
Login now