mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
cc2a9a760d
Summary: Don't think this is required or used anymore and reveals information about the structure of our project if we open source our mercurial. Reviewed By: quark-zju Differential Revision: D7128203 fbshipit-source-id: 4cdfa008631d08321a4d5a1c8f18cef429c35077
25 lines
661 B
Perl
25 lines
661 B
Perl
#require test-repo execbit hg10 slow
|
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
|
$ cd "`dirname "$TESTDIR"`"
|
|
|
|
look for python scripts without the execute bit
|
|
|
|
$ testrepohg files 'set:**.py and not exec() and grep(r"^#!.*?python")'
|
|
[1]
|
|
|
|
look for python scripts with execute bit but not shebang
|
|
|
|
$ testrepohg files 'set:**.py and exec() and not grep(r"^#!.*?python")'
|
|
[1]
|
|
|
|
look for shell scripts with execute bit but not shebang
|
|
|
|
$ testrepohg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")'
|
|
fb/tests/getdb.sh
|
|
|
|
look for non scripts with no shebang
|
|
|
|
$ testrepohg files 'set:** and exec() and not **.sh and not **.py and not grep(r"^#!")'
|
|
[1]
|