--- a/mercurial/revlogutils/constants.py Mon May 03 12:30:24 2021 +0200
+++ b/mercurial/revlogutils/constants.py Mon May 03 12:30:35 2021 +0200
@@ -45,6 +45,7 @@
REVLOG_DEFAULT_FLAGS = FLAG_INLINE_DATA
REVLOG_DEFAULT_FORMAT = REVLOGV1
REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_FORMAT | REVLOG_DEFAULT_FLAGS
+REVLOGV0_FLAGS = 0
REVLOGV1_FLAGS = FLAG_INLINE_DATA | FLAG_GENERALDELTA
REVLOGV2_FLAGS = FLAG_INLINE_DATA
@@ -113,4 +114,10 @@
# bitmark for flags that could cause rawdata content change
REVIDX_RAWTEXT_CHANGING_FLAGS = REVIDX_ISCENSORED | REVIDX_EXTSTORED
+SUPPORTED_FLAGS = {
+ REVLOGV0: REVLOGV0_FLAGS,
+ REVLOGV1: REVLOGV1_FLAGS,
+ REVLOGV2: REVLOGV2_FLAGS,
+}
+
SPARSE_REVLOG_MAX_CHAIN_LENGTH = 1000