[PATCH] help: format ``commands`` heading correctly

Ryan McElroy rm at fb.com
Thu Mar 23 06:14:12 EDT 2017


On 3/22/17 11:37 PM, Martin von Zweigbergk via Mercurial-devel wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz at google.com>
> # Date 1490225813 25200
> #      Wed Mar 22 16:36:53 2017 -0700
> # Node ID cd99f61579194767aaa958a29d8de88e639d1578
> # Parent  55c6788c54e2faf80ec14f2b0844bfe429012bc3
> help: format ``commands`` heading correctly
Kostia also send this patch out (see 
https://patchwork.mercurial-scm.org/patch/19579/), and either one will 
work fine. Let's just get one of them in.

Sorry for breaking this when I renamed the section. I should probably 
add a check-code for this as penance.

>
> The number of dashes under it needs to match exactly for it to be
> rendered as a heading. Without this change, the dashes end up on the
> same line as "commands", and "hg help config.commands" does not work.
>
> diff -r 55c6788c54e2 -r cd99f6157919 mercurial/help/config.txt
> --- a/mercurial/help/config.txt	Tue Mar 21 22:47:49 2017 -0700
> +++ b/mercurial/help/config.txt	Wed Mar 22 16:36:53 2017 -0700
> @@ -415,7 +415,7 @@
>       extension).
>   
>   ``commands``
> -----------
> +------------
>   
>   ``update.requiredest``
>       Require that the user pass a destination when running ``hg update``.
>



More information about the Mercurial-devel mailing list