hg: log generaldelta and remotefilelog in sampling

Summary: Mercurial adds new requirements (generaldata + remotefilelog) to the temp file created by the wrapper. Needed for Rust migration

Differential Revision: D7586451

fbshipit-source-id: d9c3454055a76cafa7a0f93238bc837eba8e4a48
This commit is contained in:
Adrian Catană 2018-04-12 05:09:23 -07:00 committed by Saurabh Singh
parent 1e0608239d
commit 4bfc90f422

View File

@ -109,3 +109,12 @@ def uisetup(ui):
# Replace the class for this instance and all clones created from it:
ui.__class__ = logtofile
def reposetup(ui, repo):
@repo.ui.atexit
def telemetry():
if util.safehasattr(repo, 'requirements'):
ui.log('requirements',
generaldelta=str('generaldelta' in repo.requirements).lower())
ui.log('requirements',
remotefilelog=str('remotefilelog' in repo.requirements).lower())