mercurial/commands.py
changeset 27377 d1c998d7b103
parent 27352 9fd8f1552369
child 27385 20e7de6205e7
--- a/mercurial/commands.py	Sun Dec 13 10:35:03 2015 -0800
+++ b/mercurial/commands.py	Sun Dec 13 11:04:45 2015 -0800
@@ -4367,11 +4367,16 @@
         keep.append(sys.platform.lower())
 
     section = None
+    subtopic = None
     if name and '.' in name:
         name, section = name.split('.', 1)
         section = section.lower()
-
-    text = help.help_(ui, name, **opts)
+        if '.' in section:
+            subtopic, section = section.split('.', 1)
+        else:
+            subtopic = section
+
+    text = help.help_(ui, name, subtopic=subtopic, **opts)
 
     formatted, pruned = minirst.format(text, textwidth, keep=keep,
                                        section=section)