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