Mercurial > public > mercurial-scm > hg
comparison mercurial/revlogutils/constants.py @ 47253:b876f0bf7366
revlog: introduce a plain compression mode
That mode is simple it means the chunk contains uncompressed data and can be
used directly.
Differential Revision: https://phab.mercurial-scm.org/D10650
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 19:46:25 +0200 |
parents | 6bfa6c2c5f15 |
children | ff9fd7107d11 |
comparison
equal
deleted
inserted
replaced
47252:e340b556a13e | 47253:b876f0bf7366 |
---|---|
117 | 117 |
118 ## chunk compression mode constants: | 118 ## chunk compression mode constants: |
119 # These constants are used in revlog version >=2 to denote the compression used | 119 # These constants are used in revlog version >=2 to denote the compression used |
120 # for a chunk. | 120 # for a chunk. |
121 | 121 |
122 # Chunk use no compression, the data stored on disk can be directly use as | |
123 # chunk value. Without any header information prefixed. | |
124 COMP_MODE_PLAIN = 0 | |
125 | |
122 # Chunk use a compression mode stored "inline" at the start of the chunk | 126 # Chunk use a compression mode stored "inline" at the start of the chunk |
123 # itself. This is the mode always used for revlog version "0" and "1" | 127 # itself. This is the mode always used for revlog version "0" and "1" |
124 COMP_MODE_INLINE = 2 | 128 COMP_MODE_INLINE = 2 |
125 | 129 |
126 SUPPORTED_FLAGS = { | 130 SUPPORTED_FLAGS = { |