Show More
@@ -1,41 +1,39 | |||||
|
1 | #require test-repo | |||
|
2 | ||||
1 | This code uses the ast module, which was new in 2.6, so we'll skip |
|
3 | This code uses the ast module, which was new in 2.6, so we'll skip | |
2 | this test on anything earlier. |
|
4 | this test on anything earlier. | |
3 | $ $PYTHON -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80 |
|
5 | $ $PYTHON -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80 | |
4 |
|
6 | |||
5 | $ import_checker="$TESTDIR"/../contrib/import-checker.py |
|
7 | $ import_checker="$TESTDIR"/../contrib/import-checker.py | |
|
8 | ||||
6 | Run the doctests from the import checker, and make sure |
|
9 | Run the doctests from the import checker, and make sure | |
7 | it's working correctly. |
|
10 | it's working correctly. | |
8 | $ TERM=dumb |
|
11 | $ TERM=dumb | |
9 | $ export TERM |
|
12 | $ export TERM | |
10 | $ python -m doctest $import_checker |
|
13 | $ python -m doctest $import_checker | |
11 |
|
14 | |||
12 | $ cd "$TESTDIR"/.. |
|
15 | $ cd "$TESTDIR"/.. | |
13 | $ if hg identify -q > /dev/null 2>&1; then : |
|
|||
14 | > else |
|
|||
15 | > echo "skipped: not a Mercurial working dir" >&2 |
|
|||
16 | > exit 80 |
|
|||
17 | > fi |
|
|||
18 |
|
16 | |||
19 | There are a handful of cases here that require renaming a module so it |
|
17 | There are a handful of cases here that require renaming a module so it | |
20 | 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 | |
21 | 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 | |
22 | hidden by deduplication algorithm in the cycle detector, so fixing |
|
20 | hidden by deduplication algorithm in the cycle detector, so fixing | |
23 | these may expose other cycles. |
|
21 | these may expose other cycles. | |
24 |
|
22 | |||
25 | $ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | xargs python "$import_checker" |
|
23 | $ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | xargs python "$import_checker" | |
26 | mercurial/dispatch.py mixed imports |
|
24 | mercurial/dispatch.py mixed imports | |
27 | stdlib: commands |
|
25 | stdlib: commands | |
28 | relative: error, extensions, fancyopts, hg, hook, util |
|
26 | relative: error, extensions, fancyopts, hg, hook, util | |
29 | mercurial/fileset.py mixed imports |
|
27 | mercurial/fileset.py mixed imports | |
30 | stdlib: parser |
|
28 | stdlib: parser | |
31 | relative: error, merge, util |
|
29 | relative: error, merge, util | |
32 | mercurial/revset.py mixed imports |
|
30 | mercurial/revset.py mixed imports | |
33 | stdlib: parser |
|
31 | stdlib: parser | |
34 | relative: discovery, error, hbisect, phases, util |
|
32 | relative: discovery, error, hbisect, phases, util | |
35 | mercurial/templater.py mixed imports |
|
33 | mercurial/templater.py mixed imports | |
36 | stdlib: parser |
|
34 | stdlib: parser | |
37 | relative: config, error, templatefilters, templatekw, util |
|
35 | relative: config, error, templatefilters, templatekw, util | |
38 | mercurial/ui.py mixed imports |
|
36 | mercurial/ui.py mixed imports | |
39 | stdlib: formatter |
|
37 | stdlib: formatter | |
40 | relative: config, error, scmutil, util |
|
38 | relative: config, error, scmutil, util | |
41 | Import cycle: mercurial.cmdutil -> mercurial.context -> mercurial.subrepo -> mercurial.cmdutil -> mercurial.cmdutil |
|
39 | Import cycle: mercurial.cmdutil -> mercurial.context -> mercurial.subrepo -> mercurial.cmdutil -> mercurial.cmdutil |
General Comments 0
You need to be logged in to leave comments.
Login now