changeset 31603:fbe8502c4480

revsetlang: portably bytestring-ify another pair of int() calls
author Augie Fackler <augie@google.com>
date Thu, 23 Mar 2017 10:33:20 -0400
parents 772878ac930e
children 7eac6fcf2ffa
files mercurial/revsetlang.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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':