Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlogutils/constants.py @ 47264: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 |
line wrap: on
line diff
--- a/mercurial/revlogutils/constants.py Mon May 03 20:22:34 2021 +0200 +++ b/mercurial/revlogutils/constants.py Mon May 03 19:46:25 2021 +0200 @@ -119,6 +119,10 @@ # These constants are used in revlog version >=2 to denote the compression used # for a chunk. +# Chunk use no compression, the data stored on disk can be directly use as +# chunk value. Without any header information prefixed. +COMP_MODE_PLAIN = 0 + # Chunk use a compression mode stored "inline" at the start of the chunk # itself. This is the mode always used for revlog version "0" and "1" COMP_MODE_INLINE = 2