Show More
@@ -1345,13 +1345,20 b' def help_(ui, name=None, with_version=Fa' | |||||
1345 | ui.write(d, '\n') |
|
1345 | ui.write(d, '\n') | |
1346 |
|
1346 | |||
1347 | ui.status('\n') |
|
1347 | ui.status('\n') | |
|
1348 | ||||
|
1349 | try: | |||
|
1350 | ct = mod.cmdtable | |||
|
1351 | except AttributeError: | |||
|
1352 | ui.status(_('no commands defined\n')) | |||
|
1353 | return | |||
|
1354 | ||||
1348 | if ui.verbose: |
|
1355 | if ui.verbose: | |
1349 | ui.status(_('list of commands:\n\n')) |
|
1356 | ui.status(_('list of commands:\n\n')) | |
1350 | else: |
|
1357 | else: | |
1351 | ui.status(_('list of commands (use "hg help -v %s" ' |
|
1358 | ui.status(_('list of commands (use "hg help -v %s" ' | |
1352 | 'to show aliases and global options):\n\n') % name) |
|
1359 | 'to show aliases and global options):\n\n') % name) | |
1353 |
|
1360 | |||
1354 |
modcmds = dict.fromkeys([c.split('|', 1)[0] for c in |
|
1361 | modcmds = dict.fromkeys([c.split('|', 1)[0] for c in ct]) | |
1355 | helplist(modcmds.has_key) |
|
1362 | helplist(modcmds.has_key) | |
1356 |
|
1363 | |||
1357 | if name and name != 'shortlist': |
|
1364 | if name and name != 'shortlist': |
General Comments 0
You need to be logged in to leave comments.
Login now