##// END OF EJS Templates
internals: minor rewriting of revlogs documentation...
Gregory Szorc -
r41235:d8fe67db default
parent child Browse files
Show More
@@ -11,8 +11,8 b' Metadata includes the hash of the revisi'
11 11 links to its *parent* entries. The collective metadata is referred
12 12 to as the *index* and the revision data is the *data*.
13 13
14 Revision data is stored as a series of compressed deltas against previous
15 revisions.
14 Revision data is stored as a series of compressed deltas against
15 ancestor revisions.
16 16
17 17 Revlogs are written in an append-only fashion. We never need to rewrite
18 18 a file to insert nor do we need to remove data. Rolling back in-progress
@@ -35,9 +35,6 b' This integer is logically divided into 2'
35 35 significant half of the integer is the format/version short. The other
36 36 short holds feature flags that dictate behavior of the revlog.
37 37
38 Only 1 bit of the format/version short is currently used. Remaining
39 bits are reserved for future use.
40
41 38 The following values for the format/version short are defined:
42 39
43 40 0
@@ -53,15 +50,24 b' 57005 (0xdead)'
53 50 beyond 32-bit header.
54 51
55 52 The feature flags short consists of bit flags. Where 0 is the least
56 significant bit, the following bit offsets define flags:
53 significant bit. The bit flags vary by revlog version.
54
55 Version 0 revlogs have no defined flags and the presence of a flag
56 is considered an error.
57
58 Version 1 revlogs have the following flags at the specified bit offsets:
57 59
58 60 0
59 61 Store revision data inline.
60 62 1
61 63 Generaldelta encoding.
62 64
63 2-15
64 Reserved for future use.
65 Version 2 revlogs have the following flags at the specified bit offsets:
66
67 0
68 Store revision data inline.
69 1
70 Generaldelta encoding.
65 71
66 72 The following header values are common:
67 73
General Comments 0
You need to be logged in to leave comments. Login now