[PATCH 7 of 7 v2] tests: add test-check-execute.t

Yuya Nishihara yuya at tcha.org
Wed Dec 23 04:23:59 CST 2015


On Tue, 22 Dec 2015 05:18:06 -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1450782356 0
> #      Tue Dec 22 11:05:56 2015 +0000
> # Node ID eba93bae90fd0489a2935caf1a917ddcf3c721a2
> # Parent  e394811e1af32bd177e2429baea8c7d623491ff0
> tests: add test-check-execute.t

Pushed 1-6 to the clowncopter, thanks.

> --- /dev/null
> +++ b/tests/test-check-execute.t
> @@ -0,0 +1,34 @@
> +#require test-repo

It needs execbit to be skipped on Windows.

> +look for python scripts without the execute bit
> +
> +  $ hg files 'set:(**.py) and not exec()' 2> /dev/null | \
> +  > xargs -n1 egrep -n -H '(env |/)python'|grep ':1:' | \
> +  > cat

You can use grep() fileset.


More information about the Mercurial-devel mailing list