Show More
@@ -4367,11 +4367,16 b' def help_(ui, name=None, **opts):' | |||||
4367 | keep.append(sys.platform.lower()) |
|
4367 | keep.append(sys.platform.lower()) | |
4368 |
|
4368 | |||
4369 | section = None |
|
4369 | section = None | |
|
4370 | subtopic = None | |||
4370 | if name and '.' in name: |
|
4371 | if name and '.' in name: | |
4371 | name, section = name.split('.', 1) |
|
4372 | name, section = name.split('.', 1) | |
4372 | section = section.lower() |
|
4373 | section = section.lower() | |
4373 |
|
4374 | if '.' in section: | ||
4374 | text = help.help_(ui, name, **opts) |
|
4375 | subtopic, section = section.split('.', 1) | |
|
4376 | else: | |||
|
4377 | subtopic = section | |||
|
4378 | ||||
|
4379 | text = help.help_(ui, name, subtopic=subtopic, **opts) | |||
4375 |
|
4380 | |||
4376 | formatted, pruned = minirst.format(text, textwidth, keep=keep, |
|
4381 | formatted, pruned = minirst.format(text, textwidth, keep=keep, | |
4377 | section=section) |
|
4382 | section=section) |
@@ -255,7 +255,7 b" addtopicsymbols('templates', '.. functio" | |||||
255 | addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands, |
|
255 | addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands, | |
256 | dedent=True) |
|
256 | dedent=True) | |
257 |
|
257 | |||
258 | def help_(ui, name, unknowncmd=False, full=True, **opts): |
|
258 | def help_(ui, name, unknowncmd=False, full=True, subtopic=None, **opts): | |
259 | ''' |
|
259 | ''' | |
260 | Generate the help for 'name' as unformatted restructured text. If |
|
260 | Generate the help for 'name' as unformatted restructured text. If | |
261 | 'name' is None, describe the commands available. |
|
261 | 'name' is None, describe the commands available. |
General Comments 0
You need to be logged in to leave comments.
Login now