Skip to content
Snippets Groups Projects
Commit aba724bf authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

revlog: add some comment in the header sections

We are about to add more content so let us organise the existing content first.

Differential Revision: https://phab.mercurial-scm.org/D10302
parent 6afb5ef1
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,10 @@
from ..interfaces import repository
# revlog header flags
### main revlog header
## revlog version
REVLOGV0 = 0
REVLOGV1 = 1
# Dummy value until file format is finalized.
REVLOGV2 = 0xDEAD
......@@ -15,7 +17,9 @@
REVLOGV0 = 0
REVLOGV1 = 1
# Dummy value until file format is finalized.
REVLOGV2 = 0xDEAD
## global revlog header flags
# Shared across v1 and v2.
FLAG_INLINE_DATA = 1 << 16
# Only used by v1, implied by v2.
......@@ -26,6 +30,8 @@
REVLOGV1_FLAGS = FLAG_INLINE_DATA | FLAG_GENERALDELTA
REVLOGV2_FLAGS = FLAG_INLINE_DATA
### individual entry
# revlog index flags
# For historical reasons, revlog's internal flags were exposed via the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment