##// END OF EJS Templates
patch: support diff data loss detection and upgrade...
patch: support diff data loss detection and upgrade In worst case, generating diff in upgrade mode can be two times more expensive than generating it in git mode directly: we may have to regenerate the whole diff again whenever a git feature is detected. Also, the first diff attempt is completely buffered instead of being streamed. That said, even without having profiled it yet, I am convinced we can fast-path the upgrade mode if necessary were it to be used in regular diff commands, and not only in mq where avoiding data loss is worth the price.

File last commit:

r7138:0df09887 default
r10189:e451e599 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