Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlogutils/constants.py @ 43032:a12a9af7536c
sidedata: add a new revision flag constant for side data
Small step first.
Differential Revision: https://phab.mercurial-scm.org/D6888
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 07 Aug 2019 17:55:44 +0200 |
parents | 268662aac075 |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
43031:e16ca9fde7aa | 43032:a12a9af7536c |
---|---|
38 REVIDX_ISCENSORED = repository.REVISION_FLAG_CENSORED | 38 REVIDX_ISCENSORED = repository.REVISION_FLAG_CENSORED |
39 # revision hash does not match data (narrowhg) | 39 # revision hash does not match data (narrowhg) |
40 REVIDX_ELLIPSIS = repository.REVISION_FLAG_ELLIPSIS | 40 REVIDX_ELLIPSIS = repository.REVISION_FLAG_ELLIPSIS |
41 # revision data is stored externally | 41 # revision data is stored externally |
42 REVIDX_EXTSTORED = repository.REVISION_FLAG_EXTSTORED | 42 REVIDX_EXTSTORED = repository.REVISION_FLAG_EXTSTORED |
43 # revision data contains extra metadata not part of the official digest | |
44 REVIDX_SIDEDATA = repository.REVISION_FLAG_SIDEDATA | |
43 REVIDX_DEFAULT_FLAGS = 0 | 45 REVIDX_DEFAULT_FLAGS = 0 |
44 # stable order in which flags need to be processed and their processors applied | 46 # stable order in which flags need to be processed and their processors applied |
45 REVIDX_FLAGS_ORDER = [ | 47 REVIDX_FLAGS_ORDER = [ |
46 REVIDX_ISCENSORED, | 48 REVIDX_ISCENSORED, |
47 REVIDX_ELLIPSIS, | 49 REVIDX_ELLIPSIS, |
48 REVIDX_EXTSTORED, | 50 REVIDX_EXTSTORED, |
51 REVIDX_SIDEDATA, | |
49 ] | 52 ] |
50 | 53 |
51 # bitmark for flags that could cause rawdata content change | 54 # bitmark for flags that could cause rawdata content change |
52 REVIDX_RAWTEXT_CHANGING_FLAGS = REVIDX_ISCENSORED | REVIDX_EXTSTORED | 55 REVIDX_RAWTEXT_CHANGING_FLAGS = ( |
56 REVIDX_ISCENSORED | |
57 | REVIDX_EXTSTORED | |
58 | REVIDX_SIDEDATA | |
59 ) | |
53 | 60 |
54 SPARSE_REVLOG_MAX_CHAIN_LENGTH = 1000 | 61 SPARSE_REVLOG_MAX_CHAIN_LENGTH = 1000 |
55 | 62 |