comparison hgext/remotefilelog/fileserverclient.py @ 40849:fe0b65ff00e7

remotefilelog: replace a "a=[expr]; b=a[0]" by "b=expr; a = [b]" Simpler is better. Differential Revision: https://phab.mercurial-scm.org/D5384
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 04 Dec 2018 22:12:47 -0800
parents 70de33b9d328
children fcee112fb7c4
comparison
equal deleted inserted replaced
40848:70de33b9d328 40849:fe0b65ff00e7
357 missed.append(missingid) 357 missed.append(missingid)
358 358
359 global fetchmisses 359 global fetchmisses
360 fetchmisses += len(missed) 360 fetchmisses += len(missed)
361 361
362 count = [total - len(missed)] 362 fromcache = total - len(missed)
363 fromcache = count[0] 363 count = [fromcache]
364 progress.update(count[0], total=total) 364 progress.update(count[0], total=total)
365 self.ui.log("remotefilelog", "remote cache hit rate is %r of %r\n", 365 self.ui.log("remotefilelog", "remote cache hit rate is %r of %r\n",
366 count[0], total, hit=count[0], total=total) 366 count[0], total, hit=count[0], total=total)
367 367
368 oldumask = os.umask(0o002) 368 oldumask = os.umask(0o002)