mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 14:46:47 +03:00
logging: stop logging requirements
Summary: The requirements field is only interesting for non-remotefilelog or generaldelta repos. Nowadays it's probably safe to assume clients are remotefilelog and "requirements" is less useful. Reviewed By: xavierd Differential Revision: D15710676 fbshipit-source-id: 65f04b64760c652432471c4a8dda7acc4cf45466
This commit is contained in:
parent
c754e0147b
commit
d172be76bf
@ -162,18 +162,8 @@ def telemetry(reporef):
|
||||
repo = reporef()
|
||||
if repo is None:
|
||||
return
|
||||
ui = repo.ui
|
||||
try:
|
||||
ui = repo.ui
|
||||
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(),
|
||||
)
|
||||
|
||||
try:
|
||||
lfsmetrics = repo.svfs.lfsremoteblobstore.getlfsmetrics()
|
||||
ui.log("command_metrics", **lfsmetrics)
|
||||
|
Loading…
Reference in New Issue
Block a user