##// END OF EJS Templates
sidedata: add a new revision flag constant for side data...
marmoute -
r43300:a12a9af7 default
parent child Browse files
Show More
@@ -35,9 +35,12 b" REPO_FEATURE_SHALLOW_FILE_STORAGE = b'sh"
35 REVISION_FLAG_CENSORED = 1 << 15
35 REVISION_FLAG_CENSORED = 1 << 15
36 REVISION_FLAG_ELLIPSIS = 1 << 14
36 REVISION_FLAG_ELLIPSIS = 1 << 14
37 REVISION_FLAG_EXTSTORED = 1 << 13
37 REVISION_FLAG_EXTSTORED = 1 << 13
38 REVISION_FLAG_SIDEDATA = 1 << 12
38
39
39 REVISION_FLAGS_KNOWN = (
40 REVISION_FLAGS_KNOWN = (
40 REVISION_FLAG_CENSORED | REVISION_FLAG_ELLIPSIS | REVISION_FLAG_EXTSTORED)
41 REVISION_FLAG_CENSORED | REVISION_FLAG_ELLIPSIS | REVISION_FLAG_EXTSTORED
42 | REVISION_FLAG_SIDEDATA
43 )
41
44
42 CG_DELTAMODE_STD = b'default'
45 CG_DELTAMODE_STD = b'default'
43 CG_DELTAMODE_PREV = b'previous'
46 CG_DELTAMODE_PREV = b'previous'
@@ -40,16 +40,23 b' REVIDX_ISCENSORED = repository.REVISION_'
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
General Comments 0
You need to be logged in to leave comments. Login now