tests/test-check-pyflakes.t
author Martin von Zweigbergk <martinvonz@google.com>
Wed, 25 Jul 2018 14:47:16 -0700
branchstable
changeset 3900 05cb942cb9b9
parent 2121 01ee3e155726
child 4333 824fcba2cdb4
permissions -rw-r--r--
builddependencies: don't add dependency on revision outside input set This was already handled in the single-successor case, but had been missed in the multiple-successors case. Note that there seems to be a copy of builddependencies() in the topics extension. I don't use topics more than I have to, so I'll let someone else fix that code.

#require test-repo pyflakes

Copied from Mercurial core (60ee2593a270)

  $ 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")) - removed()' 2>/dev/null \
  > | xargs pyflakes 2>/dev/null