changelog-v2: fix an assertion error to display the right data
We were checking on thing and displaying the other.
Differential Revision: https://phab.mercurial-scm.org/D11935
--- a/mercurial/revlogutils/constants.py Tue Dec 14 19:24:24 2021 +0100
+++ b/mercurial/revlogutils/constants.py Wed Dec 15 14:50:07 2021 +0100
@@ -183,7 +183,7 @@
# 1 bytes: compression mode (2 lower bit are data_compression_mode)
# 27 bytes: Padding to align to 96 bytes (see RevlogV2Plan wiki page)
INDEX_ENTRY_CL_V2 = struct.Struct(b">Qiiii20s12xQiB27x")
-assert INDEX_ENTRY_CL_V2.size == 32 * 3, INDEX_ENTRY_V2.size
+assert INDEX_ENTRY_CL_V2.size == 32 * 3, INDEX_ENTRY_CL_V2.size
INDEX_ENTRY_V2_IDX_OFFSET = 0
INDEX_ENTRY_V2_IDX_COMPRESSED_LENGTH = 1
INDEX_ENTRY_V2_IDX_UNCOMPRESSED_LENGTH = 2