diff mercurial/revlogutils/constants.py @ 42730:92ac6b1697a7

flagutil: move REVIDX_KNOWN_FLAGS source of truth in flagutil (API) Since REVIDX_KNOWN_FLAGS is "not really a constant" (extension can update it) and python integer,... it needs to be the responsability of a single module and always accessed through the module. We update all the user and move the source of truth in flagutil.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 08 Aug 2019 01:28:34 +0200
parents e7a2cc84dbc0
children 268662aac075
line wrap: on
line diff
--- a/mercurial/revlogutils/constants.py	Thu Aug 08 01:04:48 2019 +0200
+++ b/mercurial/revlogutils/constants.py	Thu Aug 08 01:28:34 2019 +0200
@@ -11,7 +11,6 @@
 
 from .. import (
     repository,
-    util,
 )
 
 # revlog header flags
@@ -48,7 +47,7 @@
     REVIDX_ELLIPSIS,
     REVIDX_EXTSTORED,
 ]
-REVIDX_KNOWN_FLAGS = util.bitsfrom(REVIDX_FLAGS_ORDER)
+
 # bitmark for flags that could cause rawdata content change
 REVIDX_RAWTEXT_CHANGING_FLAGS = REVIDX_ISCENSORED | REVIDX_EXTSTORED