[PATCH 2 of 6 py3 v2] revsetlang: portably bytestring-ify another pair of int() calls

Yuya Nishihara yuya at tcha.org
Fri Mar 24 09:41:50 EDT 2017


On Thu, 23 Mar 2017 11:11:35 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1490279600 14400
> #      Thu Mar 23 10:33:20 2017 -0400
> # Node ID 28e859b6032c8c5c1b3186a5356f0e344575eb6b
> # Parent  1f45b1946c0cb34f84f93f8a4931ab5ea5114b1a
> revsetlang: portably bytestring-ify another pair of int() calls

Queued 2-6, thanks.

> @@ -629,7 +629,7 @@ def formatspec(expr, *args):
>          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':

This hunk was queued as 553ad16b274f, so dropped.


More information about the Mercurial-devel mailing list