Show More
@@ -215,9 +215,12 b' def _cycle_sortkey(c):' | |||||
215 | return len(c), c |
|
215 | return len(c), c | |
216 |
|
216 | |||
217 | def main(argv): |
|
217 | def main(argv): | |
218 | if len(argv) < 2: |
|
218 | if len(argv) < 2 or (argv[1] == '-' and len(argv) > 2): | |
219 | print 'Usage: %s file [file] [file] ...' |
|
219 | print 'Usage: %s {-|file [file] [file] ...}' | |
220 | return 1 |
|
220 | return 1 | |
|
221 | if argv[1] == '-': | |||
|
222 | argv = argv[:1] | |||
|
223 | argv.extend(l.rstrip() for l in sys.stdin.readlines()) | |||
221 | used_imports = {} |
|
224 | used_imports = {} | |
222 | any_errors = False |
|
225 | any_errors = False | |
223 | for source_path in argv[1:]: |
|
226 | for source_path in argv[1:]: |
@@ -20,7 +20,7 b' here that we should still endeavor to fi' | |||||
20 | hidden by deduplication algorithm in the cycle detector, so fixing |
|
20 | hidden by deduplication algorithm in the cycle detector, so fixing | |
21 | these may expose other cycles. |
|
21 | these may expose other cycles. | |
22 |
|
22 | |||
23 |
$ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | |
|
23 | $ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | python "$import_checker" - | |
24 | mercurial/dispatch.py mixed imports |
|
24 | mercurial/dispatch.py mixed imports | |
25 | stdlib: commands |
|
25 | stdlib: commands | |
26 | relative: error, extensions, fancyopts, hg, hook, util |
|
26 | relative: error, extensions, fancyopts, hg, hook, util |
General Comments 0
You need to be logged in to leave comments.
Login now