contrib/perf.py
changeset 49443 2896ed067d51
parent 49438 44d4fd09982f
child 49444 52f31b660d38
--- 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