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

login
register
mail settings
Submitter phabricator
Date Feb. 24, 2018, 10:43 a.m.
Message ID <128d636c0ff996a91720dd785577d6d3@localhost.localdomain>
Download mbox | patch
Permalink /patch/28312/
State Not Applicable
Headers show

Comments

phabricator - Feb. 24, 2018, 10:43 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG469c7e146c8f: py3: use &quot;%d&quot; for integers instead of &quot;%s&quot; (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2412?vs=6031&id=6036

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

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1265,7 +1265,7 @@ 
                     if user:
                         ph.setuser(user)
                     if date:
-                        ph.setdate('%s %s' % date)
+                        ph.setdate('%d %d' % date)
                     ph.setparent(hex(nctx.p1().node()))
                     msg = nctx.description().strip()
                     if msg == defaultmsg.strip():