From patchwork Thu Sep 3 04:03:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: commands: support hg help scripting.HGPLAIN From: timeless@mozdev.org X-Patchwork-Id: 10379 Message-Id: <37f96e61740e24e54665.1441252988@waste.org> To: mercurial-devel@selenic.com Date: Wed, 02 Sep 2015 23:03:08 -0500 # HG changeset patch # User timeless@mozdev.org # Date 1441252245 14400 # Wed Sep 02 23:50:45 2015 -0400 # Node ID 37f96e61740e24e546657ab6eae1cad487e94f59 # Parent fd9b1262f0e4fbcec1f66f01839bf3d4ee4cff59 commands: support hg help scripting.HGPLAIN keywords are lowercased within help/minirst... diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -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) 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 @@ "smtp.host" Host name of mail server, e.g. "mail.example.com". +Test capitalized section name + + $ hg help scripting.HGPLAIN > /dev/null + Test templating help $ hg help templating | egrep '(desc|diffstat|firstline|nonempty) '