py3: use "%d" for integers instead of "%s"
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 24 Feb 2018 01:21:22 +0530
changeset 36389 469c7e146c8f
parent 36388 6f6063553502
child 36390 34afe92e3719
py3: use "%d" for integers instead of "%s" util.parsedate() returns a tuple of integers. Writing this patch, I wish we had some type hinting. Differential Revision: https://phab.mercurial-scm.org/D2412
hgext/mq.py
--- a/hgext/mq.py	Sat Feb 24 01:20:20 2018 +0530
+++ b/hgext/mq.py	Sat Feb 24 01:21:22 2018 +0530
@@ -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():