Mercurial > hg
changeset 31565:553ad16b274f
revsetlang: portably turn int into bytestring
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 19 Mar 2017 01:03:53 -0400 |
parents | 102f291807c9 |
children | c6df6a23dfe5 |
files | mercurial/revsetlang.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revsetlang.py Mon Mar 20 16:34:12 2017 -0700 +++ b/mercurial/revsetlang.py Sun Mar 19 01:03:53 2017 -0400 @@ -629,7 +629,7 @@ elif l == 1: return argtype(t, s[0]) elif t == 'd': - return "_intlist('%s')" % "\0".join(str(int(a)) for a in s) + return "_intlist('%s')" % "\0".join('%d' % int(a) for a in s) elif t == 's': return "_list('%s')" % "\0".join(s) elif t == 'n':