##// END OF EJS Templates
Merge with crew-stable
Merge with crew-stable

File last commit:

r7138:0df09887 default
r8166:56719b1a merge default
Show More
test-permissions
27 lines | 517 B | text/plain | TextLexer
Matt Mackall
Add permissions handling test
r1497 #!/bin/sh
Benoit Boissinot
testcase for issue705 (fixed by 316ce5e85b3e)
r5214 hg init t
cd t
Matt Mackall
Add permissions handling test
r1497 echo foo > a
hg add a
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "1" -d "1000000 0"
Matt Mackall
Add permissions handling test
r1497 hg verify
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 chmod -r .hg/store/data/a.i
Matt Mackall
Add permissions handling test
r1497 hg verify 2>/dev/null || echo verify failed
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 chmod +r .hg/store/data/a.i
Matt Mackall
Add permissions handling test
r1497 hg verify 2>/dev/null || echo verify failed
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 chmod -w .hg/store/data/a.i
Matt Mackall
Add permissions handling test
r1497 echo barber > a
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed
Alexis S. L. Carvalho
test-permissions: add a chmod +w to allow the directory to be removed
r5519 chmod -w .
Benoit Boissinot
fix test-permissions output
r5215 hg diff --nodates
Alexis S. L. Carvalho
test-permissions: add a chmod +w to allow the directory to be removed
r5519 chmod +w .
Benoit Boissinot
dirstate.walk: skip unreadable directories (issue1213)...
r7099
chmod +w .hg/store/data/a.i
mkdir dir
touch dir/a
hg status
chmod -rx dir
hg status
Benoit Boissinot
test-permission: put sane permissions at the end of the test...
r7138 # reenable perm to allow deletion
chmod +rx dir