changeset 35955:83b9f96ce20f

py3: use "%d" to convert integer to bytes Differential Revision: https://phab.mercurial-scm.org/D2041
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 05 Feb 2018 13:01:35 +0530
parents 7a991241f586
children d41e41d11574
files hgext/rebase.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')