[PATCH 4 of 4 flagprocessor v8] revlog: REVIDX_EXTSTORED flag

Remi Chaintron remi at fb.com
Thu Jan 5 17:42:04 UTC 2017


# HG changeset patch
# User Remi Chaintron <remi at fb.com>
# Date 1483636611 0
#      Thu Jan 05 17:16:51 2017 +0000
# Node ID ac003e8cf4f2dcc0283bcaa7c6722f4c4459dd86
# Parent  8701df1c04340e9951481dc4c366ba550b4e790f
revlog: REVIDX_EXTSTORED flag

diff --git a/mercurial/help/internals/revlogs.txt b/mercurial/help/internals/revlogs.txt
--- a/mercurial/help/internals/revlogs.txt
+++ b/mercurial/help/internals/revlogs.txt
@@ -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)
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -54,11 +54,13 @@
 
 # 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
-REVIDX_KNOWN_FLAGS = REVIDX_ISCENSORED
 # stable order in which flags need to be processed and their processors applied
+REVIDX_KNOWN_FLAGS = REVIDX_ISCENSORED | REVIDX_EXTSTORED
 REVIDX_FLAGS_ORDER = [
     REVIDX_ISCENSORED,
+    REVIDX_EXTSTORED,
 ]
 
 # max size of revlog with inline data



More information about the Mercurial-devel mailing list