D7027: debugcommands: add a few more writenoi18n()

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Oct 9 06:31:54 EDT 2019


Closed by commit rHGdefabf63e969: debugcommands: add a few more writenoi18n() (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7027?vs=16978&id=16984

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

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, spectral, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list