D5384: remotefilelog: replace a "a=[expr]; b=a[0]" by "b=expr; a = [b]"

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Dec 6 06:41:24 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfe0b65ff00e7: remotefilelog: replace a "a=[expr]; b=a[0]" by "b=expr; a = [b]" (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5384?vs=12723&id=12745

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

AFFECTED FILES
  hgext/remotefilelog/fileserverclient.py

CHANGE DETAILS

diff --git a/hgext/remotefilelog/fileserverclient.py b/hgext/remotefilelog/fileserverclient.py
--- a/hgext/remotefilelog/fileserverclient.py
+++ b/hgext/remotefilelog/fileserverclient.py
@@ -359,8 +359,8 @@
         global fetchmisses
         fetchmisses += len(missed)
 
-        count = [total - len(missed)]
-        fromcache = count[0]
+        fromcache = total - len(missed)
+        count = [fromcache]
         progress.update(count[0], total=total)
         self.ui.log("remotefilelog", "remote cache hit rate is %r of %r\n",
                     count[0], total, hit=count[0], total=total)



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


More information about the Mercurial-devel mailing list