##// 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 1 #!/bin/sh
2 2
3 3 hg init t
4 4 cd t
5 5 echo foo > a
6 6 hg add a
7 7 hg commit -m "1" -d "1000000 0"
8 8 hg verify
9 9 chmod -r .hg/store/data/a.i
10 10 hg verify 2>/dev/null || echo verify failed
11 11 chmod +r .hg/store/data/a.i
12 12 hg verify 2>/dev/null || echo verify failed
13 13 chmod -w .hg/store/data/a.i
14 14 echo barber > a
15 15 hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed
16 16 chmod -w .
17 17 hg diff --nodates
18 18 chmod +w .
19 19
20 20 chmod +w .hg/store/data/a.i
21 21 mkdir dir
22 22 touch dir/a
23 23 hg status
24 24 chmod -rx dir
25 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