[Updated] D11995: legacy-revlog: fix requirement computation when cloning legacy repo
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Jan 25 09:29:19 UTC 2022
Closed by commit rHGfc80752dbb24: legacy-revlog: fix requirement computation when cloning legacy repo (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/D11995?vs=31863&id=31974
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11995/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11995
AFFECTED FILES
mercurial/localrepo.py
CHANGE DETAILS
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -3543,6 +3543,10 @@
depends on the configuration
"""
target_requirements = set()
+ if not srcrepo.requirements:
+ # this is a legacy revlog "v0" repository, we cannot do anything fancy
+ # with it.
+ return target_requirements
createopts = defaultcreateopts(ui, createopts=createopts)
for r in newreporequirements(ui, createopts):
if r in requirementsmod.WORKING_DIR_REQUIREMENTS:
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/a2c48d88/attachment-0002.html>
More information about the Mercurial-patches
mailing list