remotefilelog: reduce use of "count" container
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 04 Dec 2018 22:15:42 -0800
changeset 40850 fcee112fb7c4
parent 40849 fe0b65ff00e7
child 40851 74e3df766052
remotefilelog: reduce use of "count" container We had already given the initial value of "count[0]" a name, so just use that when applicable. Differential Revision: https://phab.mercurial-scm.org/D5385
hgext/remotefilelog/fileserverclient.py
--- a/hgext/remotefilelog/fileserverclient.py	Tue Dec 04 22:12:47 2018 -0800
+++ b/hgext/remotefilelog/fileserverclient.py	Tue Dec 04 22:15:42 2018 -0800
@@ -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: