# HG changeset patch # User Yuya Nishihara <y...@tcha.org> # Date 1517040831 -32400 # Sat Jan 27 17:13:51 2018 +0900 # Node ID 6ac5670c4d6cf51930af9bd63981c3f5ef986699 # Parent 6fe094beb24e69c9a34331a2e10fc4b79c6d7669 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): _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel