Show More
@@ -19,9 +19,15 b' hgrc.close()' | |||||
19 | u = ui.ui() |
|
19 | u = ui.ui() | |
20 | extensions.loadall(u) |
|
20 | extensions.loadall(u) | |
21 |
|
21 | |||
|
22 | globalshort = set() | |||
|
23 | globallong = set() | |||
|
24 | for option in commands.globalopts: | |||
|
25 | option[0] and globalshort.add(option[0]) | |||
|
26 | option[1] and globallong.add(option[1]) | |||
|
27 | ||||
22 | for cmd, entry in commands.table.iteritems(): |
|
28 | for cmd, entry in commands.table.iteritems(): | |
23 |
seenshort = |
|
29 | seenshort = globalshort.copy() | |
24 |
seenlong = |
|
30 | seenlong = globallong.copy() | |
25 | for option in entry[1]: |
|
31 | for option in entry[1]: | |
26 | if (option[0] and option[0] in seenshort) or \ |
|
32 | if (option[0] and option[0] in seenshort) or \ | |
27 | (option[1] and option[1] in seenlong): |
|
33 | (option[1] and option[1] in seenlong): |
General Comments 0
You need to be logged in to leave comments.
Login now