Patchwork [6,of,9] py3: format revision number as '%d' in debugrevspec

login
register
mail settings
Submitter Yuya Nishihara
Date Feb. 3, 2018, 8:36 a.m.
Message ID <6ac5670c4d6cf51930af.1517646977@mimosa>
Download mbox | patch
Permalink /patch/27266/
State Accepted
Headers show

Comments

Yuya Nishihara - Feb. 3, 2018, 8:36 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.

Patch

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):