Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlogutils/docket.py @ 49826: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 | 2e726c934fcd |
children | f0756d0636d1 |
comparison
equal
deleted
inserted
replaced
49825:6f89a1d74511 | 49826:f04d459909c6 |
---|---|
88 # * 8 bytes: size of data | 88 # * 8 bytes: size of data |
89 # * 8 bytes: size of sidedata | 89 # * 8 bytes: size of sidedata |
90 # * 8 bytes: pending size of data | 90 # * 8 bytes: pending size of data |
91 # * 8 bytes: pending size of sidedata | 91 # * 8 bytes: pending size of sidedata |
92 # * 1 bytes: default compression header | 92 # * 1 bytes: default compression header |
93 S_HEADER = struct.Struct(constants.INDEX_HEADER_FMT + b'BBBBBBLLLLLLc') | 93 S_HEADER = struct.Struct(constants.INDEX_HEADER_FMT + b'BBBBBBQQQQQQc') |
94 # * 1 bytes: size of index uuid | 94 # * 1 bytes: size of index uuid |
95 # * 8 bytes: size of file | 95 # * 8 bytes: size of file |
96 S_OLD_UID = struct.Struct('>BL') | 96 S_OLD_UID = struct.Struct('>BL') |
97 | 97 |
98 | 98 |