Show More
@@ -2638,8 +2638,10 b' def mqcommand(orig, ui, repo, *args, **k' | |||||
2638 |
|
2638 | |||
2639 | def uisetup(ui): |
|
2639 | def uisetup(ui): | |
2640 | extensions.wrapcommand(commands.table, 'import', mqimport) |
|
2640 | extensions.wrapcommand(commands.table, 'import', mqimport) | |
2641 | for cmd in ('commit', 'export', 'incoming', 'log', 'outgoing', 'pull', |
|
2641 | for cmd in commands.table: | |
2642 | 'push', 'status', 'tag', 'tags', 'tip', 'update'): |
|
2642 | cmd = cmdutil.parsealiases(cmd)[0] | |
|
2643 | if cmd in commands.norepo: | |||
|
2644 | continue | |||
2643 | entry = extensions.wrapcommand(commands.table, cmd, mqcommand) |
|
2645 | entry = extensions.wrapcommand(commands.table, cmd, mqcommand) | |
2644 | entry[1].extend([('Q', 'mq', None, _("operate on patch repository"))]) |
|
2646 | entry[1].extend([('Q', 'mq', None, _("operate on patch repository"))]) | |
2645 |
|
2647 |
@@ -13,6 +13,9 b' import match as _match' | |||||
13 |
|
13 | |||
14 | revrangesep = ':' |
|
14 | revrangesep = ':' | |
15 |
|
15 | |||
|
16 | def parsealiases(cmd): | |||
|
17 | return cmd.lstrip("^").split("|") | |||
|
18 | ||||
16 | def findpossible(cmd, table, strict=False): |
|
19 | def findpossible(cmd, table, strict=False): | |
17 | """ |
|
20 | """ | |
18 | Return cmd -> (aliases, command table entry) |
|
21 | Return cmd -> (aliases, command table entry) | |
@@ -22,7 +25,7 b' def findpossible(cmd, table, strict=Fals' | |||||
22 | choice = {} |
|
25 | choice = {} | |
23 | debugchoice = {} |
|
26 | debugchoice = {} | |
24 | for e in table.keys(): |
|
27 | for e in table.keys(): | |
25 |
aliases = e |
|
28 | aliases = parsealiases(e) | |
26 | found = None |
|
29 | found = None | |
27 | if cmd in aliases: |
|
30 | if cmd in aliases: | |
28 | found = cmd |
|
31 | found = cmd |
General Comments 0
You need to be logged in to leave comments.
Login now