##// END OF EJS Templates
revlog: add some comment in the header sections...
marmoute -
r47614:aba724bf default
parent child Browse files
Show More
@@ -11,11 +11,15 b' from __future__ import absolute_import'
11
11
12 from ..interfaces import repository
12 from ..interfaces import repository
13
13
14 # revlog header flags
14 ### main revlog header
15
16 ## revlog version
15 REVLOGV0 = 0
17 REVLOGV0 = 0
16 REVLOGV1 = 1
18 REVLOGV1 = 1
17 # Dummy value until file format is finalized.
19 # Dummy value until file format is finalized.
18 REVLOGV2 = 0xDEAD
20 REVLOGV2 = 0xDEAD
21
22 ## global revlog header flags
19 # Shared across v1 and v2.
23 # Shared across v1 and v2.
20 FLAG_INLINE_DATA = 1 << 16
24 FLAG_INLINE_DATA = 1 << 16
21 # Only used by v1, implied by v2.
25 # Only used by v1, implied by v2.
@@ -26,6 +30,8 b' REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_'
26 REVLOGV1_FLAGS = FLAG_INLINE_DATA | FLAG_GENERALDELTA
30 REVLOGV1_FLAGS = FLAG_INLINE_DATA | FLAG_GENERALDELTA
27 REVLOGV2_FLAGS = FLAG_INLINE_DATA
31 REVLOGV2_FLAGS = FLAG_INLINE_DATA
28
32
33 ### individual entry
34
29 # revlog index flags
35 # revlog index flags
30
36
31 # For historical reasons, revlog's internal flags were exposed via the
37 # For historical reasons, revlog's internal flags were exposed via the
General Comments 0
You need to be logged in to leave comments. Login now