Show More
@@ -23,7 +23,14 b' def findpossible(cmd, table, strict=Fals' | |||||
23 | """ |
|
23 | """ | |
24 | choice = {} |
|
24 | choice = {} | |
25 | debugchoice = {} |
|
25 | debugchoice = {} | |
26 | for e in table.keys(): |
|
26 | ||
|
27 | if cmd in table: | |||
|
28 | # short-circuit exact matches, "log" alias beats "^log|history" | |||
|
29 | keys = [cmd] | |||
|
30 | else: | |||
|
31 | keys = table.keys() | |||
|
32 | ||||
|
33 | for e in keys: | |||
27 | aliases = parsealiases(e) |
|
34 | aliases = parsealiases(e) | |
28 | found = None |
|
35 | found = None | |
29 | if cmd in aliases: |
|
36 | if cmd in aliases: |
@@ -395,3 +395,11 b' invalid global arguments for normal comm' | |||||
395 | use "hg help" for the full list of commands or "hg -v" for details |
|
395 | use "hg help" for the full list of commands or "hg -v" for details | |
396 | [255] |
|
396 | [255] | |
397 |
|
397 | |||
|
398 | This should show id: | |||
|
399 | ||||
|
400 | $ hg --config alias.log='id' log | |||
|
401 | 000000000000 tip | |||
|
402 | ||||
|
403 | This shouldn't: | |||
|
404 | ||||
|
405 | $ hg --config alias.log='id' history |
General Comments 0
You need to be logged in to leave comments.
Login now