##// END OF EJS Templates
tests: unify test-addremove-similar
tests: unify test-addremove-similar

File last commit:

r11663:c1b11ee1 default
r11851:db955418 default
Show More
test-permissions
37 lines | 704 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'
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"
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'
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 .
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