Mercurial > hg
changeset 26159:f3b467aca485
commands: support hg help scripting.HGPLAIN
keywords are lowercased within help/minirst...
author | timeless@mozdev.org |
---|---|
date | Wed, 02 Sep 2015 23:50:45 -0400 |
parents | 342ab95a1f4b |
children | 952e0564b46e |
files | mercurial/commands.py tests/test-help.t |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Sep 02 15:19:05 2015 -0400 +++ b/mercurial/commands.py Wed Sep 02 23:50:45 2015 -0400 @@ -3971,6 +3971,7 @@ section = None if name and '.' in name: name, section = name.split('.', 1) + section = section.lower() text = help.help_(ui, name, **opts)
--- a/tests/test-help.t Wed Sep 02 15:19:05 2015 -0400 +++ b/tests/test-help.t Wed Sep 02 23:50:45 2015 -0400 @@ -922,6 +922,10 @@ "smtp.host" Host name of mail server, e.g. "mail.example.com". +Test capitalized section name + + $ hg help scripting.HGPLAIN > /dev/null + Help subsection: $ hg help config.charsets |grep "Email example:" > /dev/null