diff tests/test-branches.t @ 51521:0d4a6ab3c8da

branchcache-v3: use more explicit header line The key-value approach is clearer and gives more rooms to have the format evolve in a clear way. It also provides extension (like topic) simpler way to extend the validation scheme. This is just a small evolution, the V3 format is still a work in progress.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 26 Feb 2024 15:44:44 +0100
parents fe8347b984f3
children fc710c993ec9
line wrap: on
line diff
--- a/tests/test-branches.t	Mon Feb 26 14:20:36 2024 +0100
+++ b/tests/test-branches.t	Mon Feb 26 15:44:44 2024 +0100
@@ -1,4 +1,5 @@
-#testcases mmap nommap v3
+#testcases mmap nommap
+#testcases v2 v3
 
 #if mmap
   $ cat <<EOF >> $HGRCPATH
@@ -1336,7 +1337,7 @@
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
 #if v3
   $ cat branchmap-update-01/.hg/cache/branch3-base
-  99ba08759bc7f6fdbe5304e83d0387f35c082479 1
+  tip-node=99ba08759bc7f6fdbe5304e83d0387f35c082479 tip-rev=1
   99ba08759bc7f6fdbe5304e83d0387f35c082479 o A
 #else
   $ cat branchmap-update-01/.hg/cache/branch2-base
@@ -1352,7 +1353,7 @@
   (run 'hg update' to get a working copy)
 #if v3
   $ cat branchmap-update-01/.hg/cache/branch3-served
-  71ca9a6d524ed3c2a215119b2086ac3b8c4c8286 3
+  tip-node=71ca9a6d524ed3c2a215119b2086ac3b8c4c8286 tip-rev=3
   71ca9a6d524ed3c2a215119b2086ac3b8c4c8286 o A
 #else
   $ cat branchmap-update-01/.hg/cache/branch2-served
@@ -1382,7 +1383,7 @@
 
 #if v3
   $ cat branchmap-update-02/.hg/cache/branch3-base
-  99ba08759bc7f6fdbe5304e83d0387f35c082479 1
+  tip-node=99ba08759bc7f6fdbe5304e83d0387f35c082479 tip-rev=1
   99ba08759bc7f6fdbe5304e83d0387f35c082479 o A
 #else
   $ cat branchmap-update-02/.hg/cache/branch2-base
@@ -1399,7 +1400,7 @@
   [40]
 #if v3
   $ cat branchmap-update-02/.hg/cache/branch3-base
-  99ba08759bc7f6fdbe5304e83d0387f35c082479 1
+  tip-node=99ba08759bc7f6fdbe5304e83d0387f35c082479 tip-rev=1
   99ba08759bc7f6fdbe5304e83d0387f35c082479 o A
 #else
   $ cat branchmap-update-02/.hg/cache/branch2-base