diff mercurial/revlogutils/constants.py @ 46859:c6e23fb4bfb4

revlog: move the "index header" struct inside revlog.utils.constants The struct was previous called "version", but this is actually "version" + "flags". So header seems like a better name. The move to the `constants` module has the same motivation as the INDEX_ENTRY_V# ones. Differential Revision: https://phab.mercurial-scm.org/D10306
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 05 Apr 2021 12:21:23 +0200
parents 85e3a630cad9
children 4c041c71ec01
line wrap: on
line diff
--- a/mercurial/revlogutils/constants.py	Mon Apr 05 12:21:12 2021 +0200
+++ b/mercurial/revlogutils/constants.py	Mon Apr 05 12:21:23 2021 +0200
@@ -15,6 +15,8 @@
 
 ### main revlog header
 
+INDEX_HEADER = struct.Struct(b">I")
+
 ## revlog version
 REVLOGV0 = 0
 REVLOGV1 = 1