D12035: requirements: remove the `localrepo.supportedformat` attribute
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Jan 24 11:37:18 UTC 2022
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
It is not longer used anywhere.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D12035
AFFECTED FILES
mercurial/interfaces/repository.py
mercurial/localrepo.py
CHANGE DETAILS
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1274,27 +1274,25 @@
used.
"""
- supportedformats = {
- requirementsmod.REVLOGV1_REQUIREMENT,
- requirementsmod.GENERALDELTA_REQUIREMENT,
- requirementsmod.TREEMANIFEST_REQUIREMENT,
- requirementsmod.COPIESSDC_REQUIREMENT,
- requirementsmod.REVLOGV2_REQUIREMENT,
+ _basesupported = {
+ requirementsmod.BOOKMARKS_IN_STORE_REQUIREMENT,
requirementsmod.CHANGELOGV2_REQUIREMENT,
- requirementsmod.SPARSEREVLOG_REQUIREMENT,
- requirementsmod.NODEMAP_REQUIREMENT,
- requirementsmod.BOOKMARKS_IN_STORE_REQUIREMENT,
- requirementsmod.SHARESAFE_REQUIREMENT,
+ requirementsmod.COPIESSDC_REQUIREMENT,
requirementsmod.DIRSTATE_V2_REQUIREMENT,
- }
- _basesupported = supportedformats | {
requirementsmod.DOTENCODE_REQUIREMENT,
requirementsmod.FNCACHE_REQUIREMENT,
+ requirementsmod.GENERALDELTA_REQUIREMENT,
requirementsmod.INTERNAL_PHASE_REQUIREMENT,
+ requirementsmod.NODEMAP_REQUIREMENT,
requirementsmod.RELATIVE_SHARED_REQUIREMENT,
+ requirementsmod.REVLOGV1_REQUIREMENT,
+ requirementsmod.REVLOGV2_REQUIREMENT,
requirementsmod.SHARED_REQUIREMENT,
+ requirementsmod.SHARESAFE_REQUIREMENT,
requirementsmod.SPARSE_REQUIREMENT,
+ requirementsmod.SPARSEREVLOG_REQUIREMENT,
requirementsmod.STORE_REQUIREMENT,
+ requirementsmod.TREEMANIFEST_REQUIREMENT,
}
# list of prefix for file which can be written without 'wlock'
diff --git a/mercurial/interfaces/repository.py b/mercurial/interfaces/repository.py
--- a/mercurial/interfaces/repository.py
+++ b/mercurial/interfaces/repository.py
@@ -1495,13 +1495,6 @@
"""null revision for the hash function used by the repository."""
)
- supportedformats = interfaceutil.Attribute(
- """Set of requirements that apply to stream clone.
-
- This is actually a class attribute and is shared among all instances.
- """
- )
-
supported = interfaceutil.Attribute(
"""Set of requirements that this repo is capable of opening."""
)
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list