revlog: REVIDX_EXTSTORED flag
authorRemi Chaintron <remi@fb.com>
Thu, 05 Jan 2017 17:16:51 +0000
changeset 30746 9cb0bb0f29f0
parent 30745 c1b7b2285522
child 30747 4259df518223
revlog: REVIDX_EXTSTORED flag This flag will be used by the lfs extension to mark the revision data as stored externally.
mercurial/help/internals/revlogs.txt
mercurial/revlog.py
--- a/mercurial/help/internals/revlogs.txt	Tue Jan 10 16:15:21 2017 +0000
+++ b/mercurial/help/internals/revlogs.txt	Thu Jan 05 17:16:51 2017 +0000
@@ -90,6 +90,7 @@
 6-7 (2 bytes)
    Bit flags impacting revision behavior. The following bit offsets define:
    0: REVIDX_ISCENSORED revision has censor metadata, must be verified.
+   1: REVIDX_EXTSTORED revision data is stored externally.
 8-11 (4 bytes)
    Compressed length of revision data / chunk as stored in revlog.
 12-15 (4 bytes)
--- a/mercurial/revlog.py	Tue Jan 10 16:15:21 2017 +0000
+++ b/mercurial/revlog.py	Thu Jan 05 17:16:51 2017 +0000
@@ -54,10 +54,12 @@
 
 # revlog index flags
 REVIDX_ISCENSORED = (1 << 15) # revision has censor metadata, must be verified
+REVIDX_EXTSTORED = (1 << 14) # revision data is stored externally
 REVIDX_DEFAULT_FLAGS = 0
 # stable order in which flags need to be processed and their processors applied
 REVIDX_FLAGS_ORDER = [
     REVIDX_ISCENSORED,
+    REVIDX_EXTSTORED,
 ]
 REVIDX_KNOWN_FLAGS = util.bitsfrom(REVIDX_FLAGS_ORDER)