equal
deleted
inserted
replaced
1393 ui.status('\n') |
1393 ui.status('\n') |
1394 |
1394 |
1395 try: |
1395 try: |
1396 ct = mod.cmdtable |
1396 ct = mod.cmdtable |
1397 except AttributeError: |
1397 except AttributeError: |
|
1398 ct = None |
|
1399 if not ct: |
1398 ui.status(_('no commands defined\n')) |
1400 ui.status(_('no commands defined\n')) |
1399 return |
1401 return |
1400 |
1402 |
1401 ui.status(_('list of commands:\n\n')) |
1403 ui.status(_('list of commands:\n\n')) |
1402 modcmds = dict.fromkeys([c.split('|', 1)[0] for c in ct]) |
1404 modcmds = dict.fromkeys([c.split('|', 1)[0] for c in ct]) |