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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Thu Mar 1 14:15:25 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1c4247b0040a: py3: use '%d' instead of '%s' 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

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']))



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


More information about the Mercurial-devel mailing list