Mercurial > hg-git
view tests/test-check-pyflakes.t @ 1127:108d9303ef71
git_handler: use repo.__getitem__ instead of (removed) repo.changectx
As stated in https://phab.mercurial-scm.org/D3037,
repo.__getitem__ should be used instead of repo.changectx, which was removed.
author | Paul Morelle <paul.morelle@octobus.net> |
---|---|
date | Thu, 17 May 2018 07:51:47 +0200 |
parents | e01f59918160 |
children |
line wrap: on
line source
#require test-repo pyflakes hg10 $ . "$TESTDIR/helpers-testrepo.sh" run pyflakes on all tracked files ending in .py or without a file ending (skipping binary file random-seed) $ cat > test.py <<EOF > print(undefinedname) > EOF $ pyflakes test.py 2>/dev/null test.py:1: undefined name 'undefinedname' [1] $ cd "`dirname "$TESTDIR"`" $ testrepohg locate 'set:**.py or grep("^#!.*python")' \ > -X tests/ \ > 2>/dev/null \ > | xargs pyflakes 2>/dev/null