Show More
@@ -36,6 +36,7 b' from . import (' | |||||
36 | hg, |
|
36 | hg, | |
37 | hook, |
|
37 | hook, | |
38 | profiling, |
|
38 | profiling, | |
|
39 | pycompat, | |||
39 | revset, |
|
40 | revset, | |
40 | templatefilters, |
|
41 | templatefilters, | |
41 | templatekw, |
|
42 | templatekw, | |
@@ -58,7 +59,7 b' class request(object):' | |||||
58 |
|
59 | |||
59 | def run(): |
|
60 | def run(): | |
60 | "run the command in sys.argv" |
|
61 | "run the command in sys.argv" | |
61 |
sys.exit((dispatch(request( |
|
62 | sys.exit((dispatch(request(pycompat.sysargv[1:])) or 0) & 255) | |
62 |
|
63 | |||
63 | def _getsimilar(symbols, value): |
|
64 | def _getsimilar(symbols, value): | |
64 | sim = lambda x: difflib.SequenceMatcher(None, value, x).ratio() |
|
65 | sim = lambda x: difflib.SequenceMatcher(None, value, x).ratio() |
General Comments 0
You need to be logged in to leave comments.
Login now