##// END OF EJS Templates
localrepo: use context manager for lock and transaction in commitctx()...
localrepo: use context manager for lock and transaction in commitctx() Differential Revision: https://phab.mercurial-scm.org/D5624

File last commit:

r33199:ddd65b4f default
r41400:0132221c default
Show More
test-check-execute.t
24 lines | 630 B | text/troff | Tads3Lexer
/ tests / test-check-execute.t
timeless
tests: add test-check-execute.t...
r27569 #require test-repo execbit
timeless
tests: silence test-repo obsolete warning...
r29219 $ . "$TESTDIR/helpers-testrepo.sh"
timeless
tests: add test-check-execute.t...
r27569 $ cd "`dirname "$TESTDIR"`"
look for python scripts without the execute bit
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg files 'set:**.py and not exec() and grep(r"^#!.*?python")'
timeless
tests: add test-check-execute.t...
r27569 [1]
look for python scripts with execute bit but not shebang
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg files 'set:**.py and exec() and not grep(r"^#!.*?python")'
timeless
tests: add test-check-execute.t...
r27569 [1]
look for shell scripts with execute bit but not shebang
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")'
timeless
tests: add test-check-execute.t...
r27569 [1]
look for non scripts with no shebang
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg files 'set:exec() and not **.sh and not **.py and not grep(r"^#!")'
timeless
tests: add test-check-execute.t...
r27569 [1]