D7027: debugcommands: add a few more writenoi18n()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Oct 8 22:22:52 UTC 2019
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7027
AFFECTED FILES
mercurial/debugcommands.py
CHANGE DETAILS
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -2948,7 +2948,7 @@
if format == 0:
if ui.verbose:
- ui.write(
+ ui.writenoi18n(
(b" rev offset length linkrev" b" %s %s p2\n")
% (b"nodeid".ljust(idlen), b"p1".ljust(idlen))
)
@@ -2959,7 +2959,7 @@
)
elif format == 1:
if ui.verbose:
- ui.write(
+ ui.writenoi18n(
(
b" rev flag offset length size link p1"
b" p2 %s\n"
@@ -3253,11 +3253,11 @@
if sidedata:
sidedata = list(sidedata.items())
sidedata.sort()
- ui.write((b'%d sidedata entries\n' % len(sidedata)))
+ ui.writenoi18n(b'%d sidedata entries\n' % len(sidedata))
for key, value in sidedata:
- ui.write((b' entry-%04o size %d\n' % (key, len(value))))
+ ui.writenoi18n(b' entry-%04o size %d\n' % (key, len(value)))
if ui.verbose:
- ui.write((b' %s\n' % stringutil.pprint(value)))
+ ui.writenoi18n(b' %s\n' % stringutil.pprint(value))
@command(b'debugssl', [], b'[SOURCE]', optionalrepo=True)
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list