mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
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:
parent
1e0608239d
commit
4bfc90f422
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user