Mercurial > public > mercurial-scm > hg
comparison mercurial/revlogutils/docket.py @ 47371:298d4400ea68
index: use an explicit constant for INDEX_HEADER format and use it for docket
This avoid leaking python-3.6 compatibility details too much.
Differential Revision: https://phab.mercurial-scm.org/D10831
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 03 Jun 2021 16:12:03 +0200 |
parents | 710435a5c469 |
children | bcf92bdc2bca |
comparison
equal
deleted
inserted
replaced
47370:ab5fd39cb402 | 47371:298d4400ea68 |
---|---|
93 # * 8 bytes: size of index-data | 93 # * 8 bytes: size of index-data |
94 # * 8 bytes: pending size of index-data | 94 # * 8 bytes: pending size of index-data |
95 # * 8 bytes: size of data | 95 # * 8 bytes: size of data |
96 # * 8 bytes: pending size of data | 96 # * 8 bytes: pending size of data |
97 # * 1 bytes: default compression header | 97 # * 1 bytes: default compression header |
98 S_HEADER = struct.Struct( | 98 S_HEADER = struct.Struct(constants.INDEX_HEADER_FMT + b'BBLLLLc') |
99 pycompat.sysstr(constants.INDEX_HEADER.format) + 'BBLLLLc' | |
100 ) | |
101 | 99 |
102 | 100 |
103 class RevlogDocket(object): | 101 class RevlogDocket(object): |
104 """metadata associated with revlog""" | 102 """metadata associated with revlog""" |
105 | 103 |