[PATCH 1 of 2] help: don't try to render a section on sub-topics

Yuya Nishihara yuya at tcha.org
Mon Aug 8 09:27:17 EDT 2016


On Sat, 06 Aug 2016 17:14:44 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1470528262 25200
> #      Sat Aug 06 17:04:22 2016 -0700
> # Node ID 40a3ee1fbba0c636c67aa69426459f606887828a
> # Parent  3ef9aa7ad1fc4c43b92d48e4bb1f4e3de68b6910
> help: don't try to render a section on sub-topics
> 
> This patch subtly changes the behavior of the parsing of "X.Y" values
> to not set the "section" variable when rendering a known sub-topic.
> Previously, "section" would be the same as the sub-topic name. This
> required the sub-topic RST to have a section named the same as the
> sub-topic name.
> 
> When I made this change, the descriptions from help.internalstable
> started being rendered in command line output. This didn't look correct
> to me, as it didn't match the formatting of main help pages. I
> corrected this by moving the top section to help.internalstable and
> changing the section levels of all the "internals" topics.

Seems fine. I've queued only this since I can't be sure the next patch has
no factual errors, though it looks generally good.


More information about the Mercurial-devel mailing list