mercurial/revlogutils/constants.py
changeset 47262 6bfa6c2c5f15
parent 47260 130c9f7ed914
child 47264 b876f0bf7366
--- a/mercurial/revlogutils/constants.py	Tue May 04 01:49:37 2021 +0200
+++ b/mercurial/revlogutils/constants.py	Mon May 03 18:41:51 2021 +0200
@@ -85,9 +85,10 @@
 # 32 bytes: nodeid
 #  8 bytes: sidedata offset
 #  4 bytes: sidedata compressed length
-#  20 bytes: Padding to align to 96 bytes (see RevlogV2Plan wiki page)
-INDEX_ENTRY_V2 = struct.Struct(b">Qiiiiii20s12xQi20x")
-assert INDEX_ENTRY_V2.size == 32 * 3
+#  1 bytes: compression mode (2 lower bit are data_compression_mode)
+#  19 bytes: Padding to align to 96 bytes (see RevlogV2Plan wiki page)
+INDEX_ENTRY_V2 = struct.Struct(b">Qiiiiii20s12xQiB19x")
+assert INDEX_ENTRY_V2.size == 32 * 3, INDEX_ENTRY_V2.size
 
 # revlog index flags