# HG changeset patch # User Martin von Zweigbergk # Date 2018-12-05 06:15:42 # Node ID fcee112fb7c4b8f009815ec580b135dffbf568d7 # Parent fe0b65ff00e75e5aa913be4aadec22b0019de7dc 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 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 @@ class fileserverclient(object): 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: