##// END OF EJS Templates
fix hg help <ext> for extension that do not define any command...
Benoit Boissinot -
r4009:86098ec4 default
parent child Browse files
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 mod.cmdtable])
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':
@@ -22,6 +22,7 b' baseurl = http://test/'
22 foo@bar = *
22 foo@bar = *
23 EOF
23 EOF
24
24
25 hg help notify
25 hg init a
26 hg init a
26 echo a > a/a
27 echo a > a/a
27 echo % commit
28 echo % commit
@@ -1,3 +1,6 b''
1 notify extension - No help text available
2
3 no commands defined
1 % commit
4 % commit
2 adding a
5 adding a
3 % clone
6 % clone
General Comments 0
You need to be logged in to leave comments. Login now