D3773: streamclone: update progress later to avoid passing None to util.bytecount
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Jun 18 00:58:24 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc1fca51c26f3: streamclone: update progress later to avoid passing None to util.bytecount (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3773?vs=9142&id=9144
REVISION DETAIL
https://phab.mercurial-scm.org/D3773
AFFECTED FILES
mercurial/streamclone.py
CHANGE DETAILS
diff --git a/mercurial/streamclone.py b/mercurial/streamclone.py
--- a/mercurial/streamclone.py
+++ b/mercurial/streamclone.py
@@ -621,10 +621,10 @@
elapsed = util.timer() - start
if elapsed <= 0:
elapsed = 0.001
- progress.update(None)
repo.ui.status(_('transferred %s in %.1f seconds (%s/sec)\n') %
(util.bytecount(progress.pos), elapsed,
util.bytecount(progress.pos / elapsed)))
+ progress.update(None)
def applybundlev2(repo, fp, filecount, filesize, requirements):
missingreqs = [r for r in requirements if r not in repo.supported]
To: durin42, #hg-reviewers, martinvonz
Cc: martinvonz, mercurial-devel
More information about the Mercurial-devel
mailing list