Mercurial > hg-stable
comparison tests/test-branches.t @ 28145:cfa0037448f4
tests: change branches test to work cross platform
While it is not easy to make a file 000 on Windows, you can
emulate most of the behaviors by replacing the file with a directory.
author | timeless <timeless@mozdev.org> |
---|---|
date | Mon, 08 Feb 2016 05:56:25 +0000 |
parents | 701df761aa94 |
children | bcd106d456c4 |
comparison
equal
deleted
inserted
replaced
28144:ed6d650b7cb7 | 28145:cfa0037448f4 |
---|---|
542 0040: ee bb 94 44 00 00 00 02 5f 40 61 bb 00 00 00 02 |...D...._@a.....| | 542 0040: ee bb 94 44 00 00 00 02 5f 40 61 bb 00 00 00 02 |...D...._@a.....| |
543 0050: bf be 84 1b 00 00 00 02 d3 f1 63 45 80 00 00 02 |..........cE....| | 543 0050: bf be 84 1b 00 00 00 02 d3 f1 63 45 80 00 00 02 |..........cE....| |
544 0060: e3 d4 9c 05 80 00 00 02 e2 3b 55 05 00 00 00 02 |.........;U.....| | 544 0060: e3 d4 9c 05 80 00 00 02 e2 3b 55 05 00 00 00 02 |.........;U.....| |
545 0070: f8 94 c2 56 80 00 00 03 |...V....| | 545 0070: f8 94 c2 56 80 00 00 03 |...V....| |
546 | 546 |
547 #if unix-permissions no-root | |
548 no errors when revbranchcache is not writable | 547 no errors when revbranchcache is not writable |
549 | 548 |
550 $ echo >> .hg/cache/rbc-revs-v1 | 549 $ echo >> .hg/cache/rbc-revs-v1 |
551 $ chmod a-w .hg/cache/rbc-revs-v1 | 550 $ mv .hg/cache/rbc-revs-v1 .hg/cache/rbc-revs-v1_ |
551 $ mkdir .hg/cache/rbc-revs-v1 | |
552 $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' | 552 $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' |
553 5 | 553 5 |
554 $ chmod a+w .hg/cache/rbc-revs-v1 | 554 $ rmdir .hg/cache/rbc-revs-v1 |
555 #endif | 555 $ mv .hg/cache/rbc-revs-v1_ .hg/cache/rbc-revs-v1 |
556 | 556 |
557 recovery from invalid cache revs file with trailing data | 557 recovery from invalid cache revs file with trailing data |
558 $ echo >> .hg/cache/rbc-revs-v1 | 558 $ echo >> .hg/cache/rbc-revs-v1 |
559 $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug | 559 $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug |
560 5 | 560 5 |