# HG changeset patch # User Mads Kiilerich # Date 1414864951 -3600 # Node ID d9e3f50557724ac9f9dcf83c0d3b8bf463e13b2c # Parent 7a3f715dfa90dc11699f61bbfbf93f1918e152d8 help: don't crash on help for 'sections' with multiple '.' diff -r 7a3f715dfa90 -r d9e3f5055772 mercurial/commands.py --- 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) diff -r 7a3f715dfa90 -r d9e3f5055772 tests/test-help.t --- 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