[PATCH 2 of 3 evolve-ext] test-pyflakes: use '/' when printing the files to check

Matt Harbison mharbison72 at gmail.com
Fri Jan 4 20:19:43 EST 2019


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1546645793 18000
#      Fri Jan 04 18:49:53 2019 -0500
# Node ID 02ef02957d87aaae2cb0185de478af39907a8298
# Parent  a299a2d93b5aafc73fea2e6bee7ef3e98b7d33b1
test-pyflakes: use '/' when printing the files to check

If paths are printed with '\', `xargs` sees the parts allsmooshedtogether, and
pyflakes errors out.

diff --git a/tests/test-check-pyflakes.t b/tests/test-check-pyflakes.t
--- a/tests/test-check-pyflakes.t
+++ b/tests/test-check-pyflakes.t
@@ -7,5 +7,5 @@
 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 \
+  $ hg locate -I 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \
   > | xargs pyflakes 2>/dev/null


More information about the Mercurial-devel mailing list