Mercurial > hg
comparison tests/blackbox-readonly-dispatch.py @ 43080:86e4daa2d54c
cleanup: mark some ui.(status|note|warn|write) calls as not needing i18n
These used to be marked with no-op parens, but black removes those now
and this is more explicit.
# skip-blame: fallout from mass reformatting
Differential Revision: https://phab.mercurial-scm.org/D6996
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 10:51:16 -0400 |
parents | 2372284d9457 |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
43079:5209fc94b982 | 43080:86e4daa2d54c |
---|---|
12 | 12 |
13 Prints command and result value, but does not handle quoting. | 13 Prints command and result value, but does not handle quoting. |
14 """ | 14 """ |
15 ui = uimod.ui.load() | 15 ui = uimod.ui.load() |
16 extensions.populateui(ui) | 16 extensions.populateui(ui) |
17 ui.status(b"running: %s\n" % cmd) | 17 ui.statusnoi18n(b"running: %s\n" % cmd) |
18 req = dispatch.request(cmd.split(), ui) | 18 req = dispatch.request(cmd.split(), ui) |
19 result = dispatch.dispatch(req) | 19 result = dispatch.dispatch(req) |
20 ui.status(b"result: %r\n" % result) | 20 ui.statusnoi18n(b"result: %r\n" % result) |
21 | 21 |
22 | 22 |
23 # create file 'foo', add and commit | 23 # create file 'foo', add and commit |
24 f = open(b'foo', 'wb') | 24 f = open(b'foo', 'wb') |
25 f.write(b'foo\n') | 25 f.write(b'foo\n') |