changeset 47458:50cd14dbd3b3

benchmarks: restore `output` variable lost in D10884 Noticed by pyflakes (which I didn't have installed for Python 3.9 when I sent D10884). Differential Revision: https://phab.mercurial-scm.org/D10894
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 22 Jun 2021 08:24:27 -0700
parents f8330a3fc39f
children de54d11040e7
files contrib/benchmarks/__init__.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/benchmarks/__init__.py	Mon Jun 07 11:59:27 2021 +0200
+++ b/contrib/benchmarks/__init__.py	Tue Jun 22 08:24:27 2021 -0700
@@ -76,8 +76,9 @@
         ui, 'perfext', os.path.join(basedir, 'contrib', 'perf.py')
     )
     cmd = getattr(perfext, command)
-    with ui.silent():
-        cmd(ui, repo, *args, **kwargs)
+    ui.pushbuffer()
+    cmd(ui, repo, *args, **kwargs)
+    output = ui.popbuffer()
     match = outputre.search(output)
     if not match:
         raise ValueError("Invalid output {}".format(output))