Patchwork D2135: py3: use "%d" instead of "%s" for integers

login
register
mail settings
Submitter phabricator
Date Feb. 11, 2018, 12:43 p.m.
Message ID <differential-rev-PHID-DREV-mwufxtmn5whcrdtigkaa-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27550/
State Superseded
Headers show

Comments

phabricator - Feb. 11, 2018, 12:43 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2135

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1185,7 +1185,7 @@ 
                 except error.Abort:
                     pass
             i += 1
-            name = '%s__%s' % (namebase, i)
+            name = '%s__%d' % (namebase, i)
         return name
 
     def checkkeepchanges(self, keepchanges, force):