##// END OF EJS Templates
dirstate.walk: skip unreadable directories (issue1213)...
dirstate.walk: skip unreadable directories (issue1213) Do not abort on permission denied error, just skip the directory.

File last commit:

r7099:6f750e76 default
r7099:6f750e76 default
Show More
test-permissions
25 lines | 469 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