--- a/mercurial/dirstateutils/v2.py Thu Oct 14 08:58:07 2021 -0700
+++ b/mercurial/dirstateutils/v2.py Thu Oct 14 16:06:31 2021 +0200
@@ -18,7 +18,7 @@
# Must match the constant of the same name in
# `rust/hg-core/src/dirstate_tree/on_disk.rs`
TREE_METADATA_SIZE = 44
-NODE_SIZE = 43
+NODE_SIZE = 44
# Must match the `TreeMetadata` Rust struct in
@@ -50,7 +50,7 @@
# * 4 bytes: expected size
# * 4 bytes: mtime seconds
# * 4 bytes: mtime nanoseconds
-NODE = struct.Struct('>LHHLHLLLLBlll')
+NODE = struct.Struct('>LHHLHLLLLHlll')
assert TREE_METADATA_SIZE == TREE_METADATA.size