changeset 35902:2da4144e6716

py3: format revision number as '%d' in debugrevspec Now "hg debugrevspec" works on Python 3.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 27 Jan 2018 17:13:51 +0900
parents f0827211eb1f
children 1a31111e6239
files mercurial/debugcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sat Jan 27 17:12:35 2018 +0900
+++ b/mercurial/debugcommands.py	Sat Jan 27 17:13:51 2018 +0900
@@ -2207,7 +2207,7 @@
     if not opts['show_revs']:
         return
     for c in revs:
-        ui.write("%s\n" % c)
+        ui.write("%d\n" % c)
 
 @command('debugsetparents', [], _('REV1 [REV2]'))
 def debugsetparents(ui, repo, rev1, rev2=None):