Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revsetlang.py @ 31571:553ad16b274f
revsetlang: portably turn int into bytestring
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 19 Mar 2017 01:03:53 -0400 |
parents | 80c8a6db450d |
children | fbe8502c4480 |
comparison
equal
deleted
inserted
replaced
31570:102f291807c9 | 31571:553ad16b274f |
---|---|
627 if l == 0: | 627 if l == 0: |
628 return "_list('')" | 628 return "_list('')" |
629 elif l == 1: | 629 elif l == 1: |
630 return argtype(t, s[0]) | 630 return argtype(t, s[0]) |
631 elif t == 'd': | 631 elif t == 'd': |
632 return "_intlist('%s')" % "\0".join(str(int(a)) for a in s) | 632 return "_intlist('%s')" % "\0".join('%d' % int(a) for a in s) |
633 elif t == 's': | 633 elif t == 's': |
634 return "_list('%s')" % "\0".join(s) | 634 return "_list('%s')" % "\0".join(s) |
635 elif t == 'n': | 635 elif t == 'n': |
636 return "_hexlist('%s')" % "\0".join(node.hex(a) for a in s) | 636 return "_hexlist('%s')" % "\0".join(node.hex(a) for a in s) |
637 elif t == 'b': | 637 elif t == 'b': |