# HG changeset patch # User Mads Kiilerich # Date 1468873302 -7200 # Node ID b181a650a886b68a13d8364a5ed4ce1dd1032427 # Parent 4fc4b8cc99577158810531cbc3659e722125666a rbc: test case for cache file not growing correctly, causing bad new entries diff -r 4fc4b8cc9957 -r b181a650a886 tests/test-branches.t --- a/tests/test-branches.t Mon Jul 18 18:55:06 2016 +0100 +++ b/tests/test-branches.t Mon Jul 18 22:21:42 2016 +0200 @@ -650,4 +650,17 @@ 0050: bf be 84 1b 00 00 00 00 d3 f1 63 45 80 00 00 00 |..........cE....| 0060: e3 d4 9c 05 80 00 00 00 e2 3b 55 05 00 00 00 00 |.........;U.....| +Test that cache files are created and grows correctly: + + $ rm .hg/cache/rbc* + $ hg log -r "5 & branch(5)" -T "{rev}\n" + 5 +BUG: rbc-revs should have an entry as 5th record but has it misplaced as the +first: + $ f --size --hexdump .hg/cache/rbc-* + .hg/cache/rbc-names-v1: size=1 + 0000: 61 |a| + .hg/cache/rbc-revs-v1: size=8 + 0000: d8 cb c6 1d 00 00 00 00 |........| + $ cd ..