[PATCH 2 of 7] py3: make sure opts are passed and used correctly in help command

Yuya Nishihara yuya at tcha.org
Thu May 4 00:27:48 EDT 2017


On Thu, 04 May 2017 08:46:44 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1493320770 -19800
> #      Fri Apr 28 00:49:30 2017 +0530
> # Node ID e63c8efd338521249863af0942e4c8166dd90fc5
> # Parent  f15cb31ed5bd3d059401731b06930e0c344e0b4d
> py3: make sure opts are passed and used correctly in help command

> --- a/mercurial/help.py	Wed May 03 15:25:06 2017 +0530
> +++ b/mercurial/help.py	Fri Apr 28 00:49:30 2017 +0530
> @@ -304,6 +305,7 @@
>      '''
>  
>      from . import commands # avoid cycle
> +    opts = pycompat.byteskwargs(opts)

We'll need a workaround for helplist(..., **opts). Perhaps we can stop
using **opts expansion there.

  rst.extend(helplist(None, **opts))


More information about the Mercurial-devel mailing list