tests/test-check-pyflakes.t
author Boris Feld <boris.feld@octobus.net>
Wed, 07 Nov 2018 19:35:48 +0100
branchstable
changeset 4223 4a3d588e5311
parent 2121 01ee3e155726
child 4333 824fcba2cdb4
permissions -rw-r--r--
compat: fix fixedcopytracing compatibility with mercurial 4.8 and narrow Mercurial 4.8 version of _fullcopytracing includes some new narrow code. As https://phab.mercurial-scm.org/D3896 has not yet landed, update fixedcopytracing behind a version detection condition. This was spotted by Augie Fackler.

#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