perf: quiet stdout output in perf::unbundle
There a lot of repetitive bundle application message we do not care about.
--- 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