changeset 49714:f04d459909c6

changelog-v2: fix the docket `struct` The previous definition used `L` which is actually 4 bytes, while the documentation and intend was to use `Q`, i.e. 8 bytes.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 02 Dec 2022 02:03:49 +0100
parents 6f89a1d74511
children ce5f49e8d6ed
files mercurial/revlogutils/docket.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlogutils/docket.py	Thu Dec 01 02:26:34 2022 +0100
+++ b/mercurial/revlogutils/docket.py	Fri Dec 02 02:03:49 2022 +0100
@@ -90,7 +90,7 @@
 # * 8 bytes: pending size of data
 # * 8 bytes: pending size of sidedata
 # * 1 bytes: default compression header
-S_HEADER = struct.Struct(constants.INDEX_HEADER_FMT + b'BBBBBBLLLLLLc')
+S_HEADER = struct.Struct(constants.INDEX_HEADER_FMT + b'BBBBBBQQQQQQc')
 # * 1 bytes: size of index uuid
 # * 8 bytes: size of file
 S_OLD_UID = struct.Struct('>BL')