Patchwork D2479: py3: use '%d' to convert integers to bytes

login
register
mail settings
Submitter phabricator
Date Feb. 27, 2018, 9:48 a.m.
Message ID <differential-rev-PHID-DREV-j53r6uhprq4zfn6onk6n-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28444/
State Superseded
Headers show

Comments

phabricator - Feb. 27, 2018, 9:48 a.m.
pulkit 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/D2479

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -270,7 +270,7 @@ 
             ui.write("\n%s%s\n" % (indent_string, named))
             for deltadata in gen.deltaiter():
                 node, p1, p2, cs, deltabase, delta, flags = deltadata
-                ui.write("%s%s %s %s %s %s %s\n" %
+                ui.write("%s%s %s %s %s %s %d\n" %
                          (indent_string, hex(node), hex(p1), hex(p2),
                           hex(cs), hex(deltabase), len(delta)))