Patchwork D3773: streamclone: update progress later to avoid passing None to util.bytecount

login
register
mail settings
Submitter phabricator
Date June 18, 2018, 4:58 a.m.
Message ID <07faf86c2c0694460d8d45a4a2d34b1a@localhost.localdomain>
Download mbox | patch
Permalink /patch/32234/
State Not Applicable
Headers show

Comments

phabricator - June 18, 2018, 4:58 a.m.
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




To: durin42, #hg-reviewers, martinvonz
Cc: martinvonz, mercurial-devel

Patch

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]