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