Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/commands.py @ 2600:c4325f0a9b91
clean up trailing white space.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 12 Jul 2006 08:28:00 -0700 |
parents | b898afee9d0d |
children | 00fc88b0b256 |
comparison
equal
deleted
inserted
replaced
2599:e4b5e48052c6 | 2600:c4325f0a9b91 |
---|---|
546 | 546 |
547 def help_(ui, name=None, with_version=False): | 547 def help_(ui, name=None, with_version=False): |
548 """show help for a command, extension, or list of commands | 548 """show help for a command, extension, or list of commands |
549 | 549 |
550 With no arguments, print a list of commands and short help. | 550 With no arguments, print a list of commands and short help. |
551 | 551 |
552 Given a command name, print help for that command. | 552 Given a command name, print help for that command. |
553 | 553 |
554 Given an extension name, print help for that extension, and the | 554 Given an extension name, print help for that extension, and the |
555 commands it provides.""" | 555 commands it provides.""" |
556 option_lists = [] | 556 option_lists = [] |
577 ui.write(_("\naliases: %s\n") % ', '.join(aliases[1:])) | 577 ui.write(_("\naliases: %s\n") % ', '.join(aliases[1:])) |
578 | 578 |
579 # options | 579 # options |
580 if i[1]: | 580 if i[1]: |
581 option_lists.append(("options", i[1])) | 581 option_lists.append(("options", i[1])) |
582 | 582 |
583 def helplist(select=None): | 583 def helplist(select=None): |
584 h = {} | 584 h = {} |
585 cmds = {} | 585 cmds = {} |
586 for c, e in table.items(): | 586 for c, e in table.items(): |
587 f = c.split("|", 1)[0] | 587 f = c.split("|", 1)[0] |
3298 dotname = '.' + name | 3298 dotname = '.' + name |
3299 for k, v in external.iteritems(): | 3299 for k, v in external.iteritems(): |
3300 if k.endswith('.' + name) or v == name: | 3300 if k.endswith('.' + name) or v == name: |
3301 return sys.modules[v] | 3301 return sys.modules[v] |
3302 raise KeyError(name) | 3302 raise KeyError(name) |
3303 | 3303 |
3304 def dispatch(args): | 3304 def dispatch(args): |
3305 for name in 'SIGBREAK', 'SIGHUP', 'SIGTERM': | 3305 for name in 'SIGBREAK', 'SIGHUP', 'SIGTERM': |
3306 num = getattr(signal, name, None) | 3306 num = getattr(signal, name, None) |
3307 if num: signal.signal(num, catchterm) | 3307 if num: signal.signal(num, catchterm) |
3308 | 3308 |