--- a/mercurial/revsetlang.py Thu Mar 23 21:23:21 2017 -0700 +++ b/mercurial/revsetlang.py Thu Mar 23 10:33:20 2017 -0400 @@ -611,7 +611,7 @@ def argtype(c, arg): if c == 'd': - return str(int(arg)) + return '%d' % int(arg) elif c == 's': return quote(arg) elif c == 'r':