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

login
register
mail settings
Submitter phabricator
Date March 1, 2018, 6:49 p.m.
Message ID <differential-rev-PHID-DREV-dczlcwcabq2crnndvhsn-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28567/
State Superseded
Headers show

Comments

phabricator - March 1, 2018, 6:49 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/D2514

AFFECTED FILES
  hgext/hgk.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
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']))