##// END OF EJS Templates
tests: unify test-execute-bit
Adrian Buehlmann -
r12190:9231c629 default
parent child Browse files
Show More
@@ -1,21 +1,28 b''
1 #!/bin/sh
1 $ "$TESTDIR/hghave" execbit || exit 80
2
2
3 "$TESTDIR/hghave" execbit || exit 80
3 $ hg init
4 $ echo a > a
5 $ hg ci -Am'not executable'
6 adding a
4
7
5 hg init
8 $ chmod +x a
6 echo a > a
9 $ hg ci -m'executable'
7 hg ci -Am'not executable'
10 $ hg id
11 79abf14474dc tip
12
13 Make sure we notice the change of mode if the cached size == -1:
8
14
9 chmod +x a
15 $ hg rm a
10 hg ci -m'executable'
16 $ hg revert -r 0 a
11 hg id
17 $ hg debugstate
18 n 0 -1 unset a
19 $ hg status
20 M a
12
21
13 echo '% make sure we notice the change of mode if the cached size == -1'
22 $ hg up 0
14 hg rm a
23 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
15 hg revert -r 0 a
24 $ hg id
16 hg debugstate
25 d69afc33ff8a
17 hg st
26 $ test -x a && echo executable -- bad || echo not executable -- good
27 not executable -- good
18
28
19 hg up 0
20 hg id
21 test -x a && echo executable -- eek || echo not executable -- whew
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now