Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 46334:4b0192f592cf
share: move share safe functionality out of experimental
The share-safe functionality is complete and all configuration options are
implemented. The behavior is well discussed on mailing list and in reviews.
Let's unmark this as experimental to solve a chichen and egg issue.
Differential Revision: https://phab.mercurial-scm.org/D9823
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 18 Jan 2021 19:16:49 +0530 |
parents | 2eb5fe13461b |
children | 4a58561ace0f 0903d6b9b1df |
comparison
equal
deleted
inserted
replaced
46333:2eb5fe13461b | 46334:4b0192f592cf |
---|---|
3472 if ui.configbool(b'format', b'use-persistent-nodemap'): | 3472 if ui.configbool(b'format', b'use-persistent-nodemap'): |
3473 requirements.add(requirementsmod.NODEMAP_REQUIREMENT) | 3473 requirements.add(requirementsmod.NODEMAP_REQUIREMENT) |
3474 | 3474 |
3475 # if share-safe is enabled, let's create the new repository with the new | 3475 # if share-safe is enabled, let's create the new repository with the new |
3476 # requirement | 3476 # requirement |
3477 if ui.configbool(b'format', b'exp-share-safe'): | 3477 if ui.configbool(b'format', b'use-share-safe'): |
3478 requirements.add(requirementsmod.SHARESAFE_REQUIREMENT) | 3478 requirements.add(requirementsmod.SHARESAFE_REQUIREMENT) |
3479 | 3479 |
3480 return requirements | 3480 return requirements |
3481 | 3481 |
3482 | 3482 |
3511 ) | 3511 ) |
3512 | 3512 |
3513 if requirementsmod.SHARESAFE_REQUIREMENT in requirements: | 3513 if requirementsmod.SHARESAFE_REQUIREMENT in requirements: |
3514 ui.warn( | 3514 ui.warn( |
3515 _( | 3515 _( |
3516 b"ignoring enabled 'format.exp-share-safe' config because " | 3516 b"ignoring enabled 'format.use-share-safe' config because " |
3517 b"it is incompatible with disabled 'format.usestore'" | 3517 b"it is incompatible with disabled 'format.usestore'" |
3518 b" config\n" | 3518 b" config\n" |
3519 ) | 3519 ) |
3520 ) | 3520 ) |
3521 dropped.add(requirementsmod.SHARESAFE_REQUIREMENT) | 3521 dropped.add(requirementsmod.SHARESAFE_REQUIREMENT) |