Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.py @ 38379:ef692614e601
progress: hide update(None) in a new complete() method
update(None) seemed a bit cryptic.
Differential Revision: https://phab.mercurial-scm.org/D3774
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 17 Jun 2018 22:13:41 -0700 |
parents | 83534c4ec58b |
children | daa08d45740f |
line wrap: on
line diff
--- a/mercurial/changegroup.py Sat Jun 16 08:22:10 2018 +0530 +++ b/mercurial/changegroup.py Sun Jun 17 22:13:41 2018 -0700 @@ -246,7 +246,7 @@ self.manifestheader() deltas = self.deltaiter() repo.manifestlog._revlog.addgroup(deltas, revmap, trp) - prog.update(None) + prog.complete() self.callback = None def apply(self, repo, tr, srctype, url, targetphase=phases.draft, @@ -309,7 +309,7 @@ config='warn-empty-changegroup') clend = len(cl) changesets = clend - clstart - progress.update(None) + progress.complete() self.callback = None # pull off the manifest group