Mercurial > public > mercurial-scm > hg-stable
diff contrib/perf.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 | 8ff1ecfadcd1 |
line wrap: on
line diff
--- a/contrib/perf.py Sun Oct 06 10:10:14 2019 -0400 +++ b/contrib/perf.py Sun Oct 06 10:51:16 2019 -0400 @@ -1307,7 +1307,7 @@ hint=b"see 'hg help config.paths'", ) dest = path.pushloc or path.loc - ui.status(b'analysing phase of %s\n' % util.hidepassword(dest)) + ui.statusnoi18n(b'analysing phase of %s\n' % util.hidepassword(dest)) other = hg.peer(repo, opts, dest) # easier to perform discovery through the operation @@ -1323,9 +1323,9 @@ del other publishing = remotephases.get(b'publishing', False) if publishing: - ui.status(b'publishing: yes\n') + ui.statusnoi18n(b'publishing: yes\n') else: - ui.status(b'publishing: no\n') + ui.statusnoi18n(b'publishing: no\n') nodemap = repo.changelog.nodemap nonpublishroots = 0 @@ -1335,8 +1335,8 @@ node = bin(nhex) if node in nodemap and int(phase): nonpublishroots += 1 - ui.status(b'number of roots: %d\n' % len(remotephases)) - ui.status(b'number of known non public roots: %d\n' % nonpublishroots) + ui.statusnoi18n(b'number of roots: %d\n' % len(remotephases)) + ui.statusnoi18n(b'number of known non public roots: %d\n' % nonpublishroots) def d(): phases.remotephasessummary(repo, remotesubset, remotephases) @@ -3694,7 +3694,7 @@ def write(): for i in range(100000): - ui.write(b'Testing write performance\n') + ui.writenoi18n(b'Testing write performance\n') timer(write) fm.end()