D5087: help: displaying documented aliases by default
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Sun Oct 14 15:30:54 UTC 2018
yuja added a comment.
> @@ -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?
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5087
To: rdamazio, #hg-reviewers, durin42
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list