[PATCH 1 of 4 stable] rbc: test case for cache file not growing correctly, causing bad new entries
Mads Kiilerich
mads at kiilerich.com
Mon Jul 18 20:27:01 UTC 2016
# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1468873302 -7200
# Mon Jul 18 22:21:42 2016 +0200
# Branch stable
# Node ID 33738ab96d61001a660395cd0e2c5416222ec842
# Parent a7d1532b26a17bbaace43124cd415dcb709b08e2
rbc: test case for cache file not growing correctly, causing bad new entries
diff --git a/tests/test-branches.t b/tests/test-branches.t
--- a/tests/test-branches.t
+++ b/tests/test-branches.t
@@ -650,4 +650,17 @@ cache is rebuilt when corruption is dete
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 ..
More information about the Mercurial-devel
mailing list