[PATCH 01 of 11] revsetlang: fix _quote on int on python3

Pulkit Goyal 7895pulkit at gmail.com
Mon Mar 27 02:26:25 EDT 2017


Yuya earlier had a similar series for fixing second commit. That series and
this series have few patches similar and for few patches there are
different approaches. I have commented on individual patches with Yuya's
patch link from patchwork so that both of you can review and push things
easily.

On Mon, Mar 27, 2017 at 4:06 AM, Augie Fackler <raf at durin42.com> wrote:

> # HG changeset patch
> # User Augie Fackler <raf at durin42.com>
> # Date 1490561309 14400
> #      Sun Mar 26 16:48:29 2017 -0400
> # Node ID 1250b7d77ba41c7ce1500d4c8e5fef921a14f683
> # Parent  e86eb75e74ce1b0803c26d86a229b9b711f6d76a
> revsetlang: fix _quote on int on python3
>
> Thanks to Yuya for spotting the need.
>
> diff --git a/mercurial/revsetlang.py b/mercurial/revsetlang.py
> --- a/mercurial/revsetlang.py
> +++ b/mercurial/revsetlang.py
> @@ -586,7 +586,7 @@ def _quote(s):
>      >>> _quote(1)
>      "'1'"
>      """
> -    return "'%s'" % util.escapestr('%s' % s)
> +    return "'%s'" % util.escapestr(pycompat.bytestr(s))
>
>  def formatspec(expr, *args):
>      '''
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170327/dc11bed5/attachment.html>


More information about the Mercurial-devel mailing list