# HG changeset patch # User Yuya Nishihara # Date 2018-01-27 08:13:51 # Node ID 2da4144e6716063e83ab291a0292a1a9e8cb88ac # Parent f0827211eb1fba515f4db9d32abaedf535e07375 py3: format revision number as '%d' in debugrevspec Now "hg debugrevspec" works on Python 3. diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -2207,7 +2207,7 @@ def debugrevspec(ui, repo, expr, **opts) 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):