Mercurial > hg-stable
changeset 23855:4f23081c901e
revlog: define censored flag for revlogng index
This flag bit will be used to cheaply signal censorship presence to upper
layers (exchange, verify). It indicates that censorship metadata is present
but does not attest to the verifiability of that metadata.
For the censorship design, see: http://mercurial.selenic.com/wiki/CensorPlan
author | Mike Edgar <adgar@google.com> |
---|---|
date | Mon, 12 Jan 2015 14:01:52 -0500 |
parents | f6070d3a9cb8 |
children | 062c3ad86651 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun Jan 11 01:32:36 2015 +0100 +++ b/mercurial/revlog.py Mon Jan 12 14:01:52 2015 -0500 @@ -34,7 +34,9 @@ REVLOGNG_FLAGS = REVLOGNGINLINEDATA | REVLOGGENERALDELTA # revlog index flags -REVIDX_KNOWN_FLAGS = 0 +REVIDX_ISCENSORED = (1 << 15) # revision has censor metadata, must be verified +REVIDX_DEFAULT_FLAGS = 0 +REVIDX_KNOWN_FLAGS = REVIDX_ISCENSORED # max size of revlog with inline data _maxinline = 131072