test-execute-bit
21 lines
| 334 B
| text/plain
|
TextLexer
/ tests / test-execute-bit
|
r5490 | #!/bin/sh | ||
|
r5495 | "$TESTDIR/hghave" execbit || exit 80 | ||
|
r5490 | hg init | ||
echo a > a | ||||
|
r6158 | hg ci -Am'not executable' | ||
|
r5490 | |||
chmod +x a | ||||
|
r6158 | hg ci -m'executable' | ||
|
r5490 | hg id | ||
|
r6158 | echo '% make sure we notice the change of mode if the cached size == -1' | ||
hg rm a | ||||
hg revert -r 0 a | ||||
hg debugstate | ||||
hg st | ||||
|
r5490 | hg up 0 | ||
hg id | ||||
test -x a && echo executable -- eek || echo not executable -- whew | ||||