py3: use '%d' instead of '%s' for ints
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 01 Mar 2018 23:51:32 +0530
changeset 36490 1c4247b0040a
parent 36489 4b9e9e3f450c
child 36491 149c5af35de5
py3: use '%d' instead of '%s' for ints Differential Revision: https://phab.mercurial-scm.org/D2514
hgext/hgk.py
--- a/hgext/hgk.py	Thu Mar 01 03:56:41 2018 +0530
+++ b/hgext/hgk.py	Thu Mar 01 23:51:32 2018 +0530
@@ -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']))