This is about requirements, so lets put it into the requirements module.
We are about to remove code it was previously attached too.
( )
| Alphare |
| hg-reviewers |
This is about requirements, so lets put it into the requirements module.
We are about to remove code it was previously attached too.
| No Linters Available |
| No Unit Test Coverage |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/localrepo.py (5 lines) | |||
| M | mercurial/requirements.py (6 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| 2adf1c79dc2c | b736753c853f | Pierre-Yves David | Jan 17 2022, 1:28 PM |
| ``hg.repository()``, ``localrepo.instance()``, or | ``hg.repository()``, ``localrepo.instance()``, or | ||||
| ``localrepo.makelocalrepository()``. The latter is the lowest-level. | ``localrepo.makelocalrepository()``. The latter is the lowest-level. | ||||
| ``instance()`` adds support for creating new repositories. | ``instance()`` adds support for creating new repositories. | ||||
| ``hg.repository()`` adds more extension integration, including calling | ``hg.repository()`` adds more extension integration, including calling | ||||
| ``reposetup()``. Generally speaking, ``hg.repository()`` should be | ``reposetup()``. Generally speaking, ``hg.repository()`` should be | ||||
| used. | used. | ||||
| """ | """ | ||||
| # obsolete experimental requirements: | |||||
| # - manifestv2: An experimental new manifest format that allowed | |||||
| # for stem compression of long paths. Experiment ended up not | |||||
| # being successful (repository sizes went up due to worse delta | |||||
| # chains), and the code was deleted in 4.6. | |||||
| supportedformats = { | supportedformats = { | ||||
| requirementsmod.REVLOGV1_REQUIREMENT, | requirementsmod.REVLOGV1_REQUIREMENT, | ||||
| requirementsmod.GENERALDELTA_REQUIREMENT, | requirementsmod.GENERALDELTA_REQUIREMENT, | ||||
| requirementsmod.TREEMANIFEST_REQUIREMENT, | requirementsmod.TREEMANIFEST_REQUIREMENT, | ||||
| requirementsmod.COPIESSDC_REQUIREMENT, | requirementsmod.COPIESSDC_REQUIREMENT, | ||||
| requirementsmod.REVLOGV2_REQUIREMENT, | requirementsmod.REVLOGV2_REQUIREMENT, | ||||
| requirementsmod.CHANGELOGV2_REQUIREMENT, | requirementsmod.CHANGELOGV2_REQUIREMENT, | ||||
| requirementsmod.SPARSEREVLOG_REQUIREMENT, | requirementsmod.SPARSEREVLOG_REQUIREMENT, | ||||
| # requirements.py - objects and functions related to repository requirements | # requirements.py - objects and functions related to repository requirements | ||||
| # | # | ||||
| # Copyright 2005-2007 Olivia Mackall <olivia@selenic.com> | # Copyright 2005-2007 Olivia Mackall <olivia@selenic.com> | ||||
| # | # | ||||
| # This software may be used and distributed according to the terms of the | # This software may be used and distributed according to the terms of the | ||||
| # GNU General Public License version 2 or any later version. | # GNU General Public License version 2 or any later version. | ||||
| from __future__ import absolute_import | from __future__ import absolute_import | ||||
| # obsolete experimental requirements: | |||||
| # - manifestv2: An experimental new manifest format that allowed | |||||
| # for stem compression of long paths. Experiment ended up not | |||||
| # being successful (repository sizes went up due to worse delta | |||||
| # chains), and the code was deleted in 4.6. | |||||
| GENERALDELTA_REQUIREMENT = b'generaldelta' | GENERALDELTA_REQUIREMENT = b'generaldelta' | ||||
| DOTENCODE_REQUIREMENT = b'dotencode' | DOTENCODE_REQUIREMENT = b'dotencode' | ||||
| STORE_REQUIREMENT = b'store' | STORE_REQUIREMENT = b'store' | ||||
| FNCACHE_REQUIREMENT = b'fncache' | FNCACHE_REQUIREMENT = b'fncache' | ||||
| DIRSTATE_V2_REQUIREMENT = b'dirstate-v2' | DIRSTATE_V2_REQUIREMENT = b'dirstate-v2' | ||||
| # When narrowing is finalized and no longer subject to format changes, | # When narrowing is finalized and no longer subject to format changes, | ||||