changeset 49470:52f31b660d38

perf: quiet stdout output in perf::unbundle There a lot of repetitive bundle application message we do not care about.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 25 Aug 2022 05:11:48 +0200
parents 2896ed067d51
children cd21f2b4226f
files contrib/perf.py tests/test-contrib-perf.t
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf.py	Thu Aug 25 05:10:55 2022 +0200
+++ b/contrib/perf.py	Thu Aug 25 05:11:48 2022 +0200
@@ -2670,6 +2670,7 @@
         bundle = [None, None]
         orig_quiet = repo.ui.quiet
         try:
+            repo.ui.quiet = True
             with open(fname, mode="rb") as f:
 
                 def noop_report(*args, **kwargs):
@@ -2699,6 +2700,7 @@
                 timer(apply, setup=setup)
                 fm.end()
         finally:
+            repo.ui.quiet == orig_quiet
             gen, tr = bundle
             if tr is not None:
                 tr.abort()
--- a/tests/test-contrib-perf.t	Thu Aug 25 05:10:55 2022 +0200
+++ b/tests/test-contrib-perf.t	Thu Aug 25 05:11:48 2022 +0200
@@ -395,9 +395,6 @@
   $ hg bundle --exact --rev 'last(all(), 5)' last-5.hg
   4 changesets found
   $ hg perf::unbundle last-5.hg
-  adding changesets
-  adding manifests
-  adding file changes
 
 
 test  profile-benchmark option