From patchwork Sat Feb 3 08:36:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6,of,9] py3: format revision number as '%d' in debugrevspec From: Yuya Nishihara X-Patchwork-Id: 27266 Message-Id: <6ac5670c4d6cf51930af.1517646977@mimosa> To: mercurial-devel@mercurial-scm.org Date: Sat, 03 Feb 2018 17:36:17 +0900 # HG changeset patch # User Yuya Nishihara # 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):