comparison tests/test-module-imports.t @ 25063:723e364488f4

import-checker: add xargs like mode Before this patch, "import-check.py" is invoked via "xargs" in "test-module-imports.t", but it doesn't ensure that "import-checker.py" is certainly invoked with all mercurial specific files at once. "xargs" may invoke specified command multiple times with part of arguments given from stdin: according to "xargs(1)" man page, this dividing arguments is system-dependent. This patch adds "xargs" like mode to "import-checker.py". This can ensure that "import-checker.py" is certainly invoked with all mercurial specific files at once in "test-module-imports.t". This is assumed by subsequent patches.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Thu, 14 May 2015 01:49:10 +0900
parents d71492ca2fdd
children 86298718b01c
comparison
equal deleted inserted replaced
25062:b7a8e9fa605f 25063:723e364488f4
18 doesn't overlap with a stdlib module name. There are also some cycles 18 doesn't overlap with a stdlib module name. There are also some cycles
19 here that we should still endeavor to fix, and some cycles will be 19 here that we should still endeavor to fix, and some cycles will be
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' | xargs python "$import_checker" 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
27 mercurial/fileset.py mixed imports 27 mercurial/fileset.py mixed imports
28 stdlib: parser 28 stdlib: parser