--- a/mercurial/commands.py Sat Nov 01 18:28:54 2014 +0100
+++ b/mercurial/commands.py Sat Nov 01 19:02:31 2014 +0100
@@ -3837,7 +3837,7 @@
section = None
if name and '.' in name:
- name, section = name.split('.')
+ name, section = name.split('.', 1)
text = help.help_(ui, name, **opts)
--- a/tests/test-help.t Sat Nov 01 18:28:54 2014 +0100
+++ b/tests/test-help.t Sat Nov 01 19:02:31 2014 +0100
@@ -1094,6 +1094,10 @@
abort: help section not found
[255]
+ $ hg help glossary.mc.guffin
+ abort: help section not found
+ [255]
+
Test usage of section marks in help documents
$ cd "$TESTDIR"/../doc