changeset 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 4fc4b8cc9957
children db0095c83344
files tests/test-branches.t
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ..