tests/test-check-module-imports.t
branchstable
changeset 51150 8b3cc36009ec
parent 49235 72ff7cd05176
equal deleted inserted replaced
51149:e2632d9d1b6e 51150:8b3cc36009ec
     1 #require test-repo hg10
     1 #require test-repo hg32
     2 
     2 
     3   $ . "$TESTDIR/helpers-testrepo.sh"
     3   $ . "$TESTDIR/helpers-testrepo.sh"
     4   $ import_checker="$TESTDIR"/../contrib/import-checker.py
     4   $ import_checker="$TESTDIR"/../contrib/import-checker.py
     5 
     5 
     6   $ cd "$TESTDIR"/..
     6   $ cd "$TESTDIR"/..
    12 these may expose other cycles.
    12 these may expose other cycles.
    13 
    13 
    14 Known-bad files are excluded by -X as some of them would produce unstable
    14 Known-bad files are excluded by -X as some of them would produce unstable
    15 outputs, which should be fixed later.
    15 outputs, which should be fixed later.
    16 
    16 
    17 NOTE: the `hg locate` command here only works on files that are known to
    17 NOTE: the `hg files` command here only works on files that are known to
    18 Mercurial. If you add an import of a new file and haven't yet `hg add`ed it, you
    18 Mercurial. If you add an import of a new file and haven't yet `hg add`ed it, you
    19 will likely receive warnings about a direct import.
    19 will likely receive warnings about a direct import.
    20 
    20 
    21   $ testrepohg locate 'set:**.py or grep(r"^#!.*?python")' \
    21   $ testrepohg files 'set:**.py or grep(r"^#!.*?python")' \
    22   > 'tests/**.t' \
    22   > 'glob:tests/**.t' \
    23   > -X hgweb.cgi \
    23   > -X hgweb.cgi \
    24   > -X setup.py \
    24   > -X setup.py \
    25   > -X contrib/automation/ \
    25   > -X contrib/automation/ \
    26   > -X contrib/debugshell.py \
    26   > -X contrib/debugshell.py \
    27   > -X contrib/hgweb.fcgi \
    27   > -X contrib/hgweb.fcgi \