diff -r 3dbc95f3eb31 -r aba2bb2a6d0f mercurial/commands.py --- a/mercurial/commands.py Fri Aug 05 15:01:16 2016 +0200 +++ b/mercurial/commands.py Sat Aug 06 17:04:22 2016 -0700 @@ -4593,12 +4593,15 @@ section = None subtopic = None if name and '.' in name: - name, section = name.split('.', 1) - section = encoding.lower(section) - if '.' in section: - subtopic, section = section.split('.', 1) + name, remaining = name.split('.', 1) + remaining = encoding.lower(remaining) + if '.' in remaining: + subtopic, section = remaining.split('.', 1) else: - subtopic = section + if name in help.subtopics: + subtopic = remaining + else: + section = remaining text = help.help_(ui, name, subtopic=subtopic, **opts)