diff -r eac3591abbf4 -r ff9fd7107d11 mercurial/revlogutils/constants.py --- a/mercurial/revlogutils/constants.py Mon May 03 21:04:55 2021 +0200 +++ b/mercurial/revlogutils/constants.py Mon May 03 21:13:24 2021 +0200 @@ -123,6 +123,16 @@ # chunk value. Without any header information prefixed. COMP_MODE_PLAIN = 0 +# Chunk use the "default compression" for the revlog (usually defined in the +# revlog docket). A header is still used. +# +# XXX: keeping a header is probably not useful and we should probably drop it. +# +# XXX: The value of allow mixed type of compression in the revlog is unclear +# and we should consider making PLAIN/DEFAULT the only available mode for +# revlog v2, disallowing INLINE mode. +COMP_MODE_DEFAULT = 1 + # 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