This revision was automatically updated to reflect the committed changes.
Closed by commit rHG444861dc1e55: help: displaying documented aliases by
default (authored by rdamazio, committed by ).
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D5087?vs=12256=12318#toc
REPOSITORY
rHG
yuja added a comment.
Queued the series for 4.9, many thanks.
> @@ -523,16 +538,20 @@
>
> f = fs[0]
> syns[f] = ', '.join(fs)
> func = e[0]
>
> +alias = getattr(func, 'alias', False)
Removed unused variable `alias`.
> @@ -554,11 +557,14 @@
>
Queued the series for 4.9, many thanks.
> @@ -523,16 +538,20 @@
> f = fs[0]
> syns[f] = ', '.join(fs)
> func = e[0]
> +alias = getattr(func, 'alias', False)
Removed unused variable `alias`.
> @@ -554,11 +557,14 @@
> # drop prefix
rdamazio updated this revision to Diff 12256.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5087?vs=12127=12256
REVISION DETAIL
https://phab.mercurial-scm.org/D5087
AFFECTED FILES
mercurial/dispatch.py
mercurial/help.py
mercurial/registrar.py
rdamazio added a comment.
In https://phab.mercurial-scm.org/D5087#76401, @yuja wrote:
> > @@ -507,16 +522,11 @@
> >
> > f = fs[0]
> > syns[f] = ', '.join(fs)
> > func = e[0]
> >
> > +alias = getattr(func, 'alias', False)
> >
> > if select and not
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
> -
> @@ -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
rdamazio updated this revision to Diff 12127.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5087?vs=12092=12127
REVISION DETAIL
https://phab.mercurial-scm.org/D5087
AFFECTED FILES
mercurial/dispatch.py
mercurial/help.py
mercurial/registrar.py
rdamazio created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This makes aliases be displayed in "hg help" when they have a :doc config
entry, and also allows them to be assigned to a category with :category.
REPOSITORY