Mercurial > evolve
comparison tests/test-check-pyflakes.t @ 6899:43b1fcb4055c mercurial-6.7
test-compat: merge mercurial-6.8 into mercurial-6.7
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 24 Oct 2024 17:57:11 +0400 |
parents | 8cb7c24fb564 |
children |
comparison
equal
deleted
inserted
replaced
6798:f46913e52954 | 6899:43b1fcb4055c |
---|---|
1 #require test-repo pyflakes | 1 #require test-repo pyflakes |
2 | |
3 $ . "$RUNTESTDIR/helpers-testrepo.sh" | |
2 | 4 |
3 Copied from Mercurial core (60ee2593a270) | 5 Copied from Mercurial core (60ee2593a270) |
4 | 6 |
5 $ cd "`dirname "$TESTDIR"`" | 7 $ cd "`dirname "$TESTDIR"`" |
6 | 8 |
7 run pyflakes on all tracked files ending in .py or with a python shebang | 9 run pyflakes on all tracked files ending in .py or with a python shebang |
8 | 10 |
9 $ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \ | 11 $ testrepohg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \ |
10 > -X hgext3rd/evolve/thirdparty \ | 12 > -X hgext3rd/evolve/thirdparty \ |
11 > 2>/dev/null \ | 13 > 2>/dev/null \ |
12 > | xargs -0 "$PYTHON" -m pyflakes 2>/dev/null | 14 > | xargs -0 "$PYTHON" -m pyflakes 2>/dev/null |