[Updated] D12035: requirements: remove the `localrepo.supportedformat` attribute
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Jan 25 09:18:03 UTC 2022
Closed by commit rHG348d2c6b5048: requirements: remove the `localrepo.supportedformat` attribute (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12035?vs=31735&id=31911
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12035/new/
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, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220125/cec45a4c/attachment-0002.html>
More information about the Mercurial-patches
mailing list