changeset 52193:bda065f37f64 stable

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 05 Nov 2024 11:50:29 -0500
parents 54be3c9bc81f
children 16b300e30139
files tests/test-racy-mutations.t
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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