perf: quiet stdout output in perf::unbundle
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 25 Aug 2022 05:11:48 +0200
changeset 49444 52f31b660d38
parent 49443 2896ed067d51
child 49445 cd21f2b4226f
perf: quiet stdout output in perf::unbundle There a lot of repetitive bundle application message we do not care about.
contrib/perf.py
tests/test-contrib-perf.t
--- 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