remotefilelog: do ui.log of remotecache hit rate

Summary: We would like to utilize Martijn's logtoprocess extension to log cache hit rate.

Test Plan: None so far, will update the diff later.

Reviewers: #sourcecontrol, ttung

Differential Revision: https://phabricator.fb.com/D3094765
This commit is contained in:
Kostia Balytskyi 2016-04-01 03:16:00 -07:00
parent cc54a98956
commit 4e61e19a3d

View File

@ -273,6 +273,8 @@ class fileserverclient(object):
count = [total - len(missed)]
self.ui.progress(_downloading, count[0], total=total)
self.ui.log("remotefilelog", "remote cache hit rate is %r of %r ",
count[0], total, hit=count[0], total=total)
oldumask = os.umask(0o002)
try: