diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3971,6 +3971,7 @@ def help_(ui, name=None, **opts): section = None if name and '.' in name: name, section = name.split('.', 1) + section = section.lower() text = help.help_(ui, name, **opts) diff --git a/tests/test-help.t b/tests/test-help.t --- a/tests/test-help.t +++ b/tests/test-help.t @@ -922,6 +922,10 @@ Test repeated config section name "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