##// END OF EJS Templates
test-permission: put sane permissions at the end of the test...
Benoit Boissinot -
r7138:0df09887 default
parent child Browse files
Show More
@@ -1,25 +1,27
1 #!/bin/sh
1 #!/bin/sh
2
2
3 hg init t
3 hg init t
4 cd t
4 cd t
5 echo foo > a
5 echo foo > a
6 hg add a
6 hg add a
7 hg commit -m "1" -d "1000000 0"
7 hg commit -m "1" -d "1000000 0"
8 hg verify
8 hg verify
9 chmod -r .hg/store/data/a.i
9 chmod -r .hg/store/data/a.i
10 hg verify 2>/dev/null || echo verify failed
10 hg verify 2>/dev/null || echo verify failed
11 chmod +r .hg/store/data/a.i
11 chmod +r .hg/store/data/a.i
12 hg verify 2>/dev/null || echo verify failed
12 hg verify 2>/dev/null || echo verify failed
13 chmod -w .hg/store/data/a.i
13 chmod -w .hg/store/data/a.i
14 echo barber > a
14 echo barber > a
15 hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed
15 hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed
16 chmod -w .
16 chmod -w .
17 hg diff --nodates
17 hg diff --nodates
18 chmod +w .
18 chmod +w .
19
19
20 chmod +w .hg/store/data/a.i
20 chmod +w .hg/store/data/a.i
21 mkdir dir
21 mkdir dir
22 touch dir/a
22 touch dir/a
23 hg status
23 hg status
24 chmod -rx dir
24 chmod -rx dir
25 hg status
25 hg status
26 # reenable perm to allow deletion
27 chmod +rx dir
General Comments 0
You need to be logged in to leave comments. Login now