changelog-v2: fix an assertion error to display the right data
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 15 Dec 2021 14:50:07 +0100
changeset 48498 d5137c00ab17
parent 48497 2c6084f67a86
child 48499 52034c42c09d
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
mercurial/revlogutils/constants.py
--- 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