##// END OF EJS Templates
test-permissions: echo commands to make output readable
Martin Geisler -
r11663:c1b11ee1 default
parent child Browse files
Show More
@@ -1,27 +1,37
1 #!/bin/sh
1 #!/bin/sh
2
2
3 echo '% hg init t'
3 hg init t
4 hg init t
4 cd t
5 cd t
5 echo foo > a
6 echo foo > a
7 echo '% hg add a'
6 hg add a
8 hg add a
9 echo '% hg commit'
7 hg commit -m "1" -d "1000000 0"
10 hg commit -m "1" -d "1000000 0"
11 echo '% hg verify'
8 hg verify
12 hg verify
9 chmod -r .hg/store/data/a.i
13 chmod -r .hg/store/data/a.i
14 echo '% hg verify'
10 hg verify 2>/dev/null || echo verify failed
15 hg verify 2>/dev/null || echo verify failed
11 chmod +r .hg/store/data/a.i
16 chmod +r .hg/store/data/a.i
17 echo '% hg verify'
12 hg verify 2>/dev/null || echo verify failed
18 hg verify 2>/dev/null || echo verify failed
13 chmod -w .hg/store/data/a.i
19 chmod -w .hg/store/data/a.i
14 echo barber > a
20 echo barber > a
21 echo '% hg commit'
15 hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed
22 hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed
16 chmod -w .
23 chmod -w .
24 echo '% hg diff'
17 hg diff --nodates
25 hg diff --nodates
18 chmod +w .
26 chmod +w .
19
27
20 chmod +w .hg/store/data/a.i
28 chmod +w .hg/store/data/a.i
21 mkdir dir
29 mkdir dir
22 touch dir/a
30 touch dir/a
31 echo '% hg status'
23 hg status
32 hg status
24 chmod -rx dir
33 chmod -rx dir
34 echo '% hg status'
25 hg status
35 hg status
26 # reenable perm to allow deletion
36 # reenable perm to allow deletion
27 chmod +rx dir
37 chmod +rx dir
@@ -1,26 +1,36
1 % hg init t
2 % hg add a
3 % hg commit
4 % hg verify
1 checking changesets
5 checking changesets
2 checking manifests
6 checking manifests
3 crosschecking files in changesets and manifests
7 crosschecking files in changesets and manifests
4 checking files
8 checking files
5 1 files, 1 changesets, 1 total revisions
9 1 files, 1 changesets, 1 total revisions
10 % hg verify
6 checking changesets
11 checking changesets
7 checking manifests
12 checking manifests
8 crosschecking files in changesets and manifests
13 crosschecking files in changesets and manifests
9 checking files
14 checking files
10 verify failed
15 verify failed
16 % hg verify
11 checking changesets
17 checking changesets
12 checking manifests
18 checking manifests
13 crosschecking files in changesets and manifests
19 crosschecking files in changesets and manifests
14 checking files
20 checking files
15 1 files, 1 changesets, 1 total revisions
21 1 files, 1 changesets, 1 total revisions
22 % hg commit
16 commit failed
23 commit failed
24 % hg diff
17 diff -r c1fab96507ef a
25 diff -r c1fab96507ef a
18 --- a/a
26 --- a/a
19 +++ b/a
27 +++ b/a
20 @@ -1,1 +1,1 @@
28 @@ -1,1 +1,1 @@
21 -foo
29 -foo
22 +barber
30 +barber
31 % hg status
23 M a
32 M a
24 ? dir/a
33 ? dir/a
34 % hg status
25 dir: Permission denied
35 dir: Permission denied
26 M a
36 M a
General Comments 0
You need to be logged in to leave comments. Login now