changeset 42821:fd8d13ea1bcc

debugdiscovery: only list common heads on verbose The list of common heads is only part of the useful information. In addition on repository with many heads, the information is very not helpful (just fill a couple of screen with hash). As a result we hide it behind a --verbose flag.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 26 Mar 2019 17:26:54 +0100 (2019-03-26)
parents c3a16c282dd8
children eec20025ada3
files mercurial/debugcommands.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -849,8 +849,9 @@
     ui.write(("  common:              %(nb-revs-common)9d\n") % data)
     ui.write(("  missing:             %(nb-revs-missing)9d\n") % data)
 
-    ui.write(("common heads: %s\n") %
-             " ".join(sorted(short(n) for n in common)))
+    if ui.verbose:
+        ui.write(("common heads: %s\n") %
+                 " ".join(sorted(short(n) for n in common)))
 
 _chunksize = 4 << 10