[Updated] D10894: benchmarks: restore `output` variable lost in D10884

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Jun 22 22:22:39 UTC 2021


Closed by commit rHG50cd14dbd3b3: benchmarks: restore `output` variable lost in D10884 (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10894?vs=28671&id=28674

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10894/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D10894

AFFECTED FILES
  contrib/benchmarks/__init__.py

CHANGE DETAILS

diff --git a/contrib/benchmarks/__init__.py b/contrib/benchmarks/__init__.py
--- a/contrib/benchmarks/__init__.py
+++ b/contrib/benchmarks/__init__.py
@@ -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))



To: martinvonz, #hg-reviewers
Cc: Alphare, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210622/b3bfea03/attachment-0002.html>


More information about the Mercurial-patches mailing list