[Request] [+ ] D10894: benchmarks: restore `output` variable lost in D10884
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Jun 22 15:32:13 UTC 2021
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Noticed by pyflakes (which I didn't have installed for Python 3.9 when
I sent D10884 <https://phab.mercurial-scm.org/D10884>).
REPOSITORY
rHG Mercurial
BRANCH
default
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: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210622/60ab81b2/attachment.html>
More information about the Mercurial-patches
mailing list