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.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/localrepo.py (5 lines) | |||
M | mercurial/requirements.py (6 lines) |
``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, |