Patchwork D5385: remotefilelog: reduce use of "count" container

login
register
mail settings
Submitter phabricator
Date Dec. 6, 2018, 11:41 a.m.
Message ID <dd592d7c4b1105f8f1d4541f76d48385@localhost.localdomain>
Download mbox | patch
Permalink /patch/37015/
State Not Applicable
Headers show

Comments

phabricator - Dec. 6, 2018, 11:41 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfcee112fb7c4: remotefilelog: reduce use of &quot;count&quot; container (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5385?vs=12724&id=12746

REVISION DETAIL
  https://phab.mercurial-scm.org/D5385

AFFECTED FILES
  hgext/remotefilelog/fileserverclient.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/remotefilelog/fileserverclient.py b/hgext/remotefilelog/fileserverclient.py
--- a/hgext/remotefilelog/fileserverclient.py
+++ b/hgext/remotefilelog/fileserverclient.py
@@ -361,9 +361,9 @@ 
 
         fromcache = total - len(missed)
         count = [fromcache]
-        progress.update(count[0], total=total)
+        progress.update(fromcache, total=total)
         self.ui.log("remotefilelog", "remote cache hit rate is %r of %r\n",
-                    count[0], total, hit=count[0], total=total)
+                    fromcache, total, hit=fromcache, total=total)
 
         oldumask = os.umask(0o002)
         try: