##// END OF EJS Templates
tests: add a comment in a test that will hopefully save someone some time...
Kyle Lippincott -
r47261:02d91167 default
parent child Browse files
Show More
@@ -1,40 +1,44 b''
1 1 #require test-repo
2 2
3 3 $ . "$TESTDIR/helpers-testrepo.sh"
4 4 $ import_checker="$TESTDIR"/../contrib/import-checker.py
5 5
6 6 $ cd "$TESTDIR"/..
7 7
8 8 There are a handful of cases here that require renaming a module so it
9 9 doesn't overlap with a stdlib module name. There are also some cycles
10 10 here that we should still endeavor to fix, and some cycles will be
11 11 hidden by deduplication algorithm in the cycle detector, so fixing
12 12 these may expose other cycles.
13 13
14 14 Known-bad files are excluded by -X as some of them would produce unstable
15 15 outputs, which should be fixed later.
16 16
17 NOTE: the `hg locate` 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
19 will likely receive warnings about a direct import.
20
17 21 $ testrepohg locate 'set:**.py or grep(r"^#!.*?python")' \
18 22 > 'tests/**.t' \
19 23 > -X hgweb.cgi \
20 24 > -X setup.py \
21 25 > -X contrib/automation/ \
22 26 > -X contrib/debugshell.py \
23 27 > -X contrib/hgweb.fcgi \
24 28 > -X contrib/packaging/hg-docker \
25 29 > -X contrib/packaging/hgpackaging/ \
26 30 > -X contrib/packaging/inno/ \
27 31 > -X contrib/phab-clean.py \
28 32 > -X contrib/python-zstandard/ \
29 33 > -X contrib/win32/hgwebdir_wsgi.py \
30 34 > -X contrib/perf-utils/perf-revlog-write-plot.py \
31 35 > -X doc/gendoc.py \
32 36 > -X doc/hgmanpage.py \
33 37 > -X i18n/posplit \
34 38 > -X mercurial/thirdparty \
35 39 > -X tests/hypothesishelpers.py \
36 40 > -X tests/test-check-interfaces.py \
37 41 > -X tests/test-demandimport.py \
38 42 > -X tests/test-imports-checker.t \
39 43 > -X tests/test-verify-repo-operations.py \
40 44 > | sed 's-\\-/-g' | "$PYTHON" "$import_checker" -
General Comments 0
You need to be logged in to leave comments. Login now