D5087: help: displaying documented aliases by default

Yuya Nishihara yuya at tcha.org
Sun Oct 14 11:17:35 EDT 2018


> @@ -507,16 +522,11 @@
>              f = fs[0]
>              syns[f] = ', '.join(fs)
>              func = e[0]
> +            alias = getattr(func, 'alias', False)
>              if select and not select(f):
>                  continue
> -            if (not select and name != 'shortlist' and
> -                func.__module__ != commands.__name__):
> -                continue
> -            if name == "shortlist":
> -                if not getattr(func, 'helpbasic', False):
> -                    continue
>              doc = pycompat.getdoc(func)
> -            if filtercmd(ui, f, name, doc):
> +            if filtercmd(ui, f, func, name, doc):

This makes extension commands get listed in "hg help". I think that's fine,
but can you split patches so we can backout if that causes problem?


More information about the Mercurial-devel mailing list