Mercurial > hg-stable
changeset 40868:fcee112fb7c4
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 04 Dec 2018 22:15:42 -0800 |
parents | fe0b65ff00e7 |
children | 74e3df766052 |
files | hgext/remotefilelog/fileserverclient.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: