Show More
@@ -1,29 +1,33 b'' | |||
|
1 | 1 | $ check_code="$TESTDIR"/../contrib/check-code.py |
|
2 | 2 | $ cd "$TESTDIR"/.. |
|
3 | 3 | $ if hg identify -q > /dev/null 2>&1; then : |
|
4 | 4 | > else |
|
5 | 5 | > echo "skipped: not a Mercurial working dir" >&2 |
|
6 | 6 | > exit 80 |
|
7 | 7 | > fi |
|
8 | 8 | |
|
9 | 9 | New errors are not allowed. Warnings are strongly discouraged. |
|
10 | 10 | |
|
11 | 11 | $ hg manifest 2>/dev/null \ |
|
12 | 12 | > | xargs "$check_code" --warnings --nolineno --per-file=0 \ |
|
13 | 13 | > || false |
|
14 | 14 | |
|
15 | 15 | Check Python files without py extension |
|
16 | 16 | |
|
17 | 17 | $ cp \ |
|
18 | 18 | > hg \ |
|
19 | 19 | > hgweb.cgi \ |
|
20 | 20 | > contrib/convert-repo \ |
|
21 | 21 | > contrib/dumprevlog \ |
|
22 | 22 | > contrib/hgweb.fcgi \ |
|
23 | 23 | > contrib/hgweb.wsgi \ |
|
24 | 24 | > contrib/simplemerge \ |
|
25 | 25 | > contrib/undumprevlog \ |
|
26 | > i18n/hggettext \ | |
|
27 | > i18n/posplit \ | |
|
28 | > tests/hghave \ | |
|
29 | > tests/dummyssh \ | |
|
26 | 30 | > "$TESTTMP"/ |
|
27 | 31 | $ for f in "$TESTTMP"/*; do cp "$f" "$f.py"; done |
|
28 | 32 | $ "$check_code" --warnings --nolineno --per-file=0 "$TESTTMP"/*.py \ |
|
29 | 33 | > || false |
General Comments 0
You need to be logged in to leave comments.
Login now