mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
f5ff8e7bc2
I'm about to fix a bug in check-code that a # anywhere on a line treated the rest of the line as a comment, even if it was meaningful. This test is the one place we explicitly *do* want hardcoded paths referenced, but we can work around that by specifying bin as a regular expression.
15 lines
362 B
Perl
15 lines
362 B
Perl
#require test-repo
|
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
|
$ cd "`dirname "$TESTDIR"`"
|
|
|
|
look for python scripts that do not use /usr/bin/env
|
|
|
|
$ hg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bi{1}n/env python")'
|
|
[1]
|
|
|
|
look for shell scripts that do not use /bin/sh
|
|
|
|
$ hg files 'set:grep(r"^#!.*/bi{1}n/sh") and not grep(r"^#!/bi{1}n/sh")'
|
|
[1]
|