Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-permissions @ 5217:551958d5082c
testcase for issue705 (fixed by 316ce5e85b3e)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 24 Aug 2007 00:52:28 +0200 |
parents | c0b449154a90 |
children | 74723744d8e0 |
comparison
equal
deleted
inserted
replaced
5215:b0bc8cf41ffc | 5217:551958d5082c |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 hg init | 3 hg init t |
4 cd t | |
4 echo foo > a | 5 echo foo > a |
5 hg add a | 6 hg add a |
6 hg commit -m "1" -d "1000000 0" | 7 hg commit -m "1" -d "1000000 0" |
7 hg verify | 8 hg verify |
8 chmod -r .hg/store/data/a.i | 9 chmod -r .hg/store/data/a.i |
10 chmod +r .hg/store/data/a.i | 11 chmod +r .hg/store/data/a.i |
11 hg verify 2>/dev/null || echo verify failed | 12 hg verify 2>/dev/null || echo verify failed |
12 chmod -w .hg/store/data/a.i | 13 chmod -w .hg/store/data/a.i |
13 echo barber > a | 14 echo barber > a |
14 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 |
15 | 16 chmod -w ../t |
17 hg diff |