mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
16270db464
Summary: check-execute was failing because the filesets are too slow (about 45+s each). This fixes the performance by optimizing some internal fileset logic, and by fixing a fileset to be scoped to the current working directory instead of the whole repo. Unfortunately the fileset implementation optimization needs to be deployed before the test can benefit from it (since the test runs the system hg), so we need to leave the test disabled until the fix rolls out. Reviewed By: quark-zju Differential Revision: D6802078 fbshipit-source-id: 26767c989e15b6d0ae5f5d9560309dafa5c380ff
26 lines
693 B
Perl
26 lines
693 B
Perl
#require test-repo execbit hg10
|
|
|
|
$ . "$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/facebook-hg-rpms/hgsql_getdb.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]
|