Mercurial > hg
comparison tests/test-branches.t @ 29603:b181a650a886
rbc: test case for cache file not growing correctly, causing bad new entries
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 18 Jul 2016 22:21:42 +0200 |
parents | bcd106d456c4 |
children | db0095c83344 |
comparison
equal
deleted
inserted
replaced
29602:4fc4b8cc9957 | 29603:b181a650a886 |
---|---|
648 0030: 58 97 36 a2 00 00 00 02 10 ff 58 95 00 00 00 03 |X.6.......X.....| | 648 0030: 58 97 36 a2 00 00 00 02 10 ff 58 95 00 00 00 03 |X.6.......X.....| |
649 0040: ee bb 94 44 00 00 00 00 5f 40 61 bb 00 00 00 00 |...D...._@a.....| | 649 0040: ee bb 94 44 00 00 00 00 5f 40 61 bb 00 00 00 00 |...D...._@a.....| |
650 0050: bf be 84 1b 00 00 00 00 d3 f1 63 45 80 00 00 00 |..........cE....| | 650 0050: bf be 84 1b 00 00 00 00 d3 f1 63 45 80 00 00 00 |..........cE....| |
651 0060: e3 d4 9c 05 80 00 00 00 e2 3b 55 05 00 00 00 00 |.........;U.....| | 651 0060: e3 d4 9c 05 80 00 00 00 e2 3b 55 05 00 00 00 00 |.........;U.....| |
652 | 652 |
653 Test that cache files are created and grows correctly: | |
654 | |
655 $ rm .hg/cache/rbc* | |
656 $ hg log -r "5 & branch(5)" -T "{rev}\n" | |
657 5 | |
658 BUG: rbc-revs should have an entry as 5th record but has it misplaced as the | |
659 first: | |
660 $ f --size --hexdump .hg/cache/rbc-* | |
661 .hg/cache/rbc-names-v1: size=1 | |
662 0000: 61 |a| | |
663 .hg/cache/rbc-revs-v1: size=8 | |
664 0000: d8 cb c6 1d 00 00 00 00 |........| | |
665 | |
653 $ cd .. | 666 $ cd .. |