Patchwork D2041: py3: use "%d" to convert integer to bytes

login
register
mail settings
Submitter phabricator
Date Feb. 5, 2018, 8:23 a.m.
Message ID <differential-rev-PHID-DREV-6w2kdizvwkqk3fx2v56q-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27301/
State Superseded
Headers show

Comments

phabricator - Feb. 5, 2018, 8:23 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/D2041

AFFECTED FILES
  hgext/rebase.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -214,7 +214,7 @@ 
             if v >= 0:
                 newrev = repo[v].hex()
             else:
-                newrev = v
+                newrev = "%d" % v
             destnode = repo[destmap[d]].hex()
             f.write("%s:%s:%s\n" % (oldrev, newrev, destnode))
         repo.ui.debug('rebase status stored\n')