##// END OF EJS Templates
merge with stable
merge with stable

File last commit:

r12156:4c94b6d0 default
r12278:c4c2ba55 merge default
Show More
test-permissions
37 lines | 674 B | text/plain | TextLexer
Matt Mackall
Add permissions handling test
r1497 #!/bin/sh
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg init t'
Benoit Boissinot
testcase for issue705 (fixed by 316ce5e85b3e)
r5214 hg init t
cd t
Matt Mackall
Add permissions handling test
r1497 echo foo > a
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg add a'
Matt Mackall
Add permissions handling test
r1497 hg add a
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg commit'
Martin Geisler
tests: remove unneeded -d flags...
r12156 hg commit -m "1"
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg verify'
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
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg verify'
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
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg verify'
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
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg commit'
Martin Geisler
tests: remove unneeded -d flags...
r12156 hg commit -m "2" 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 .
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg diff'
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
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg status'
Benoit Boissinot
dirstate.walk: skip unreadable directories (issue1213)...
r7099 hg status
chmod -rx dir
Martin Geisler
test-permissions: echo commands to make output readable
r11663 echo '% hg status'
Benoit Boissinot
dirstate.walk: skip unreadable directories (issue1213)...
r7099 hg status
Benoit Boissinot
test-permission: put sane permissions at the end of the test...
r7138 # reenable perm to allow deletion
chmod +rx dir