Mercurial > hg-stable
view tests/test-check-execute.t @ 33163:5d29c55414b3
rebase: always pass destination as revnum to _handleskippingobsolete()
We were passing it as a revision number in one place and as a context
in another. It worked because the only use was in "repo[dest].rev()",
but it was confusing. By always passing a revision number, we can also
remove that unnecessary lookup.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 28 Jun 2017 14:53:54 -0700 |
parents | 6c113a7dec52 |
children | ddd65b4f3ae6 |
line wrap: on
line source
#require test-repo execbit $ . "$TESTDIR/helpers-testrepo.sh" $ cd "`dirname "$TESTDIR"`" look for python scripts without the execute bit $ syshg files 'set:**.py and not exec() and grep(r"^#!.*?python")' [1] look for python scripts with execute bit but not shebang $ syshg files 'set:**.py and exec() and not grep(r"^#!.*?python")' [1] look for shell scripts with execute bit but not shebang $ syshg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")' [1] look for non scripts with no shebang $ syshg files 'set:exec() and not **.sh and not **.py and not grep(r"^#!")' [1]