commands: support hg help scripting.HGPLAIN
authortimeless@mozdev.org
Wed, 02 Sep 2015 23:50:45 -0400
changeset 26159 f3b467aca485
parent 26158 342ab95a1f4b
child 26160 952e0564b46e
commands: support hg help scripting.HGPLAIN keywords are lowercased within help/minirst...
mercurial/commands.py
tests/test-help.t
--- 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