| 1 |
#!/usr/bin/env bash |
| 2 |
set -e |
| 3 |
|
| 4 |
if [ -n "$TESTDIR" ]; then |
| 5 |
. "$TESTDIR/helpers-testrepo.sh" |
| 6 |
HG="${HG:-testrepohg}" |
| 7 |
else |
| 8 |
HG="${HG:-hg}" |
| 9 |
fi |
| 10 |
|
| 11 |
HERE="$(dirname "$0")" |
| 12 |
cd "$(dirname "$HERE")" |
| 13 |
|
| 14 |
PYTHON="${PYTHON:-python3}" |
| 15 |
|
| 16 |
$HG files 'set:**.py or grep(r"^#!.*?python")' \ |
| 17 |
'glob:tests/**.t' \ |
| 18 |
-X hgweb.cgi \ |
| 19 |
-X setup.py \ |
| 20 |
-X contrib/automation/ \ |
| 21 |
-X contrib/debugshell.py \ |
| 22 |
-X contrib/hgweb.fcgi \ |
| 23 |
-X contrib/packaging/hg-docker \ |
| 24 |
-X contrib/packaging/hgpackaging/ \ |
| 25 |
-X contrib/packaging/inno/ \ |
| 26 |
-X contrib/phab-clean.py \ |
| 27 |
-X contrib/python-zstandard/ \ |
| 28 |
-X contrib/win32/hgwebdir_wsgi.py \ |
| 29 |
-X contrib/perf-utils/perf-revlog-write-plot.py \ |
| 30 |
-X doc/gendoc.py \ |
| 31 |
-X doc/hgmanpage.py \ |
| 32 |
-X i18n/posplit \ |
| 33 |
-X mercurial/thirdparty \ |
| 34 |
-X tests/testlib/hypothesishelpers.py \ |
| 35 |
-X tests/test-demandimport.py \ |
| 36 |
-X tests/test-imports-checker.t \ |
| 37 |
-X tests/test-verify-repo-operations.py \ |
| 38 |
-X tests/test-extension.t \ |
| 39 |
| sed 's-\\-/-g' | "$PYTHON" "contrib/import-checker.py" - |