##// END OF EJS Templates
sidedatacopies: add a new requirement for storing copies into sidedata...
marmoute -
r43407:81efc4a2 default
parent child Browse files
Show More
@@ -748,6 +748,12 b' coreconfigitem('
748 b'format', b'usestore', default=True,
748 b'format', b'usestore', default=True,
749 )
749 )
750 coreconfigitem(
750 coreconfigitem(
751 b'format',
752 b'exp-use-copies-side-data-changeset',
753 default=False,
754 experimental=True,
755 )
756 coreconfigitem(
751 b'format', b'use-side-data', default=False, experimental=True,
757 b'format', b'use-side-data', default=False, experimental=True,
752 )
758 )
753 coreconfigitem(
759 coreconfigitem(
@@ -440,6 +440,10 b" SPARSEREVLOG_REQUIREMENT = b'sparserevlo"
440 # information for revision without altering their original hashes.
440 # information for revision without altering their original hashes.
441 SIDEDATA_REQUIREMENT = b'exp-sidedata-flag'
441 SIDEDATA_REQUIREMENT = b'exp-sidedata-flag'
442
442
443 # A repository with the the copies-sidedata-changeset requirement will store
444 # copies related information in changeset's sidedata.
445 COPIESSDC_REQUIREMENT = b'exp-copies-sidedata-changeset'
446
443 # Functions receiving (ui, features) that extensions can register to impact
447 # Functions receiving (ui, features) that extensions can register to impact
444 # the ability to load repositories with custom requirements. Only
448 # the ability to load repositories with custom requirements. Only
445 # functions defined in loaded extensions are called.
449 # functions defined in loaded extensions are called.
@@ -997,6 +1001,7 b' class localrepository(object):'
997 b'revlogv1',
1001 b'revlogv1',
998 b'generaldelta',
1002 b'generaldelta',
999 b'treemanifest',
1003 b'treemanifest',
1004 COPIESSDC_REQUIREMENT,
1000 REVLOGV2_REQUIREMENT,
1005 REVLOGV2_REQUIREMENT,
1001 SIDEDATA_REQUIREMENT,
1006 SIDEDATA_REQUIREMENT,
1002 SPARSEREVLOG_REQUIREMENT,
1007 SPARSEREVLOG_REQUIREMENT,
@@ -3512,6 +3517,10 b' def newreporequirements(ui, createopts):'
3512 # experimental config: format.use-side-data
3517 # experimental config: format.use-side-data
3513 if ui.configbool(b'format', b'use-side-data'):
3518 if ui.configbool(b'format', b'use-side-data'):
3514 requirements.add(SIDEDATA_REQUIREMENT)
3519 requirements.add(SIDEDATA_REQUIREMENT)
3520 # experimental config: format.exp-use-copies-side-data-changeset
3521 if ui.configbool(b'format', b'exp-use-copies-side-data-changeset'):
3522 requirements.add(SIDEDATA_REQUIREMENT)
3523 requirements.add(COPIESSDC_REQUIREMENT)
3515 if ui.configbool(b'experimental', b'treemanifest'):
3524 if ui.configbool(b'experimental', b'treemanifest'):
3516 requirements.add(b'treemanifest')
3525 requirements.add(b'treemanifest')
3517
3526
General Comments 0
You need to be logged in to leave comments. Login now