##// END OF EJS Templates
revbranchcache: add test for when the cache is not writable...
Durham Goode -
r24372:577f65cf default
parent child Browse files
Show More
@@ -547,6 +547,17 b' revision branch cache is created when bu'
547 0050: bf be 84 1b 00 00 00 02 d3 f1 63 45 80 00 00 02 |..........cE....|
547 0050: bf be 84 1b 00 00 00 02 d3 f1 63 45 80 00 00 02 |..........cE....|
548 0060: e3 d4 9c 05 80 00 00 02 e2 3b 55 05 00 00 00 02 |.........;U.....|
548 0060: e3 d4 9c 05 80 00 00 02 e2 3b 55 05 00 00 00 02 |.........;U.....|
549 0070: f8 94 c2 56 80 00 00 03 |...V....|
549 0070: f8 94 c2 56 80 00 00 03 |...V....|
550
551 #if unix-permissions no-root
552 no errors when revbranchcache is not writable
553
554 $ echo >> .hg/cache/rbc-revs-v1
555 $ chmod a-w .hg/cache/rbc-revs-v1
556 $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n'
557 5
558 $ chmod a+w .hg/cache/rbc-revs-v1
559 #endif
560
550 recovery from invalid cache revs file with trailing data
561 recovery from invalid cache revs file with trailing data
551 $ echo >> .hg/cache/rbc-revs-v1
562 $ echo >> .hg/cache/rbc-revs-v1
552 $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug
563 $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug
General Comments 0
You need to be logged in to leave comments. Login now