tests: add a "missing" tests for manifest content in test-racy-mutations.t stable
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 05 Nov 2024 11:50:29 -0500
branchstable
changeset 52193 bda065f37f64
parent 52192 54be3c9bc81f
child 52194 16b300e30139
tests: add a "missing" tests for manifest content in test-racy-mutations.t Trying to figure out why the divergence in behavior on Windows. The first test shows everything is the same on all platforms; the second shows that the other #testcase also diverges. The difference might be that `00manifest.i` doesn't get updated (and copied over) after `pre-race` is created, but I've no idea why that would be either.
tests/test-racy-mutations.t
--- a/tests/test-racy-mutations.t	Tue Nov 05 11:48:22 2024 -0500
+++ b/tests/test-racy-mutations.t	Tue Nov 05 11:50:29 2024 -0500
@@ -78,6 +78,11 @@
      rev linkrev nodeid       p1           p2
        0       0 222799e2f90b 000000000000 000000000000
        1       1 6f124f6007a0 222799e2f90b 000000000000
+  $ hg --repository ../racing-client debugrevlogindex -m
+     rev linkrev nodeid       p1           p2
+       0       0 7b7020262a56 000000000000 000000000000
+       1       1 ad3fe36d86d9 7b7020262a56 000000000000
+
 
 We simulate an network FS race by overwriting raced repo content with the new
 content of the files changed in the racing repository
@@ -102,6 +107,15 @@
        0       0 222799e2f90b 000000000000 000000000000
        1       1 6f124f6007a0 222799e2f90b 000000000000
        2       1 ac80e6205bb2 222799e2f90b 000000000000
+
+TODO: Figure out why the middle entry is missing on Windows.
+  $ hg debugrevlogindex -m
+     rev linkrev nodeid       p1           p2
+       0       0 7b7020262a56 000000000000 000000000000
+       1       1 ad3fe36d86d9 7b7020262a56 000000000000 (no-windows !)
+       2       1 d93163bb8ce3 7b7020262a56 000000000000 (no-windows !)
+       1       1 d93163bb8ce3 7b7020262a56 000000000000 (windows !)
+
 #endif
 
 #if fail-if-detected