[PATCH 2 of 5] help: use the first topic name from helptable, not the longest alias
Patrick Mézard
patrick at mezard.eu
Wed Aug 1 09:20:37 UTC 2012
Le 01/08/12 00:22, Mads Kiilerich a écrit :
> # HG changeset patch
> # User Mads Kiilerich <mads at kiilerich.com>
> # Date 1343773103 -7200
> # Branch stable
> # Node ID b3cf59ece0402f89f4773a506079be73dc8f08ed
> # Parent c2f9c4235b35145714f965e95be1895f8c3f5cfe
> help: use the first topic name from helptable, not the longest alias
>
> This makes the 'additional help topics' list consistent with the output from
> keyword search (for instance subrepo/subrepos).
>
> The sorting by longest name was introduced in 3f6a4f1de43f. There might have
> been a good reason for it back then, but now it seems like a better idea to
> place the preferred name first in the list in helptable.
Maybe simplify the one in webcommands.py too?
--
Patrick Mézard
More information about the Mercurial-devel
mailing list