py3: use "%d" to convert integer to bytes
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 05 Feb 2018 13:01:35 +0530
changeset 35915 83b9f96ce20f
parent 35914 7a991241f586
child 35916 d41e41d11574
py3: use "%d" to convert integer to bytes Differential Revision: https://phab.mercurial-scm.org/D2041
hgext/rebase.py
--- a/hgext/rebase.py	Mon Feb 05 12:59:57 2018 +0530
+++ b/hgext/rebase.py	Mon Feb 05 13:01:35 2018 +0530
@@ -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')