changeset 36389:469c7e146c8f

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 24 Feb 2018 01:21:22 +0530
parents 6f6063553502
children 34afe92e3719
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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():