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

login
register
mail settings
Submitter phabricator
Date Feb. 11, 2018, 2:05 p.m.
Message ID <07b665cd3d253d24aa2f41528d81f7f0@localhost.localdomain>
Download mbox | patch
Permalink /patch/27572/
State Not Applicable
Headers show

Comments

phabricator - Feb. 11, 2018, 2:05 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf91b7f26c68a: py3: use &quot;%d&quot; instead of &quot;%s&quot; for integers (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2135?vs=5398&id=5420

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