# HG changeset patch # User Pierre-Yves David # Date 1661397055 -7200 # Node ID 2896ed067d519287492f000a6f2f17d477d596f4 # Parent 81623652376510c653f9529be3b6c86a391438fd perf: quiet stderr output in perf::unbundle There a lot of repetitive transaction message we do not care about. diff -r 816236523765 -r 2896ed067d51 contrib/perf.py --- a/contrib/perf.py Tue Aug 23 17:31:27 2022 -0400 +++ b/contrib/perf.py Thu Aug 25 05:10:55 2022 +0200 @@ -2668,9 +2668,13 @@ with repo.lock(): bundle = [None, None] + orig_quiet = repo.ui.quiet try: with open(fname, mode="rb") as f: + def noop_report(*args, **kwargs): + pass + def setup(): gen, tr = bundle if tr is not None: @@ -2679,6 +2683,7 @@ f.seek(0) bundle[0] = exchange.readbundle(ui, f, fname) bundle[1] = repo.transaction(b'perf::unbundle') + bundle[1]._report = noop_report # silence the transaction def apply(): gen, tr = bundle diff -r 816236523765 -r 2896ed067d51 tests/test-contrib-perf.t --- a/tests/test-contrib-perf.t Tue Aug 23 17:31:27 2022 -0400 +++ b/tests/test-contrib-perf.t Thu Aug 25 05:10:55 2022 +0200 @@ -398,8 +398,6 @@ adding changesets adding manifests adding file changes - transaction abort! - rollback completed test profile-benchmark option