tests/test-check-pyflakes.t
author Gregory Szorc <gregory.szorc@gmail.com>
Thu, 15 Oct 2015 13:43:18 -0700
changeset 26758 bde7ef23340d
parent 22198 77142de48ae4
child 27285 aef5b606d3ee
permissions -rw-r--r--
commands: support consuming stream clone bundles For the same reasons that we don't produce stream clone bundles with `hg bundle`, we don't support consuming stream clone bundles with `hg unbundle`. We introduce a complementary debug command for applying stream clone bundles. This command is mostly to facilitate testing. Although it may be used to manually apply stream clone bundles until a more formal mechanism is (possibly) adopted.

#require test-repo pyflakes

  $ cd "`dirname "$TESTDIR"`"

run pyflakes on all tracked files ending in .py or without a file ending
(skipping binary file random-seed)

  $ hg locate 'set:**.py or grep("^!#.*python")' 2>/dev/null \
  > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
  tests/filterpyflakes.py:58: undefined name 'undefinedname'