Patchwork D2514: py3: use '%d' instead of '%s' for ints

login
register
mail settings
Submitter phabricator
Date March 1, 2018, 7:15 p.m.
Message ID <3b3d43a0e673796f373e02b77c0beb31@localhost.localdomain>
Download mbox | patch
Permalink /patch/28578/
State Not Applicable
Headers show

Comments

phabricator - March 1, 2018, 7:15 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1c4247b0040a: py3: use &#039;%d&#039; instead of &#039;%s&#039; for ints (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2514?vs=6260&id=6269

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

AFFECTED FILES
  hgext/hgk.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/hgk.py b/hgext/hgk.py
--- a/hgext/hgk.py
+++ b/hgext/hgk.py
@@ -146,7 +146,7 @@ 
 
     date = ctx.date()
     description = ctx.description().replace("\0", "")
-    ui.write(("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1])))
+    ui.write(("author %s %d %d\n" % (ctx.user(), int(date[0]), date[1])))
 
     if 'committer' in ctx.extra():
         ui.write(("committer %s\n" % ctx.extra()['committer']))