equal
deleted
inserted
replaced
438 |
438 |
439 # A repository with the sidedataflag requirement will allow to store extra |
439 # A repository with the sidedataflag requirement will allow to store extra |
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. |
446 # |
450 # |
447 # The function receives a set of requirement strings that the repository |
451 # The function receives a set of requirement strings that the repository |
995 # chains), and the code was deleted in 4.6. |
999 # chains), and the code was deleted in 4.6. |
996 supportedformats = { |
1000 supportedformats = { |
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, |
1003 bookmarks.BOOKMARKS_IN_STORE_REQUIREMENT, |
1008 bookmarks.BOOKMARKS_IN_STORE_REQUIREMENT, |
1004 } |
1009 } |
3510 requirements.add(SPARSEREVLOG_REQUIREMENT) |
3515 requirements.add(SPARSEREVLOG_REQUIREMENT) |
3511 |
3516 |
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 |
3518 revlogv2 = ui.config(b'experimental', b'revlogv2') |
3527 revlogv2 = ui.config(b'experimental', b'revlogv2') |
3519 if revlogv2 == b'enable-unstable-format-and-corrupt-my-data': |
3528 if revlogv2 == b'enable-unstable-format-and-corrupt-my-data': |