Skip to content
Snippets Groups Projects
Commit 4a9570e389b2 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

share-safe: add support for static-http repository

We need to read the second requirements file in the static-http case too. Otherwise, static-http would miss most of the requirements and misbehave.

Differential Revision: https://phab.mercurial-scm.org/D11996
parent fc80752dbb24
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@
namespaces,
pathutil,
pycompat,
requirements as requirementsmod,
url,
util,
vfs as vfsmod,
......@@ -197,6 +198,9 @@
# we do not care about empty old-style repositories here
msg = _(b"'%s' does not appear to be an hg repository") % path
raise error.RepoError(msg)
if requirementsmod.SHARESAFE_REQUIREMENT in requirements:
storevfs = vfsclass(self.vfs.join(b'store'))
requirements |= set(storevfs.read(b'requires').splitlines())
supportedrequirements = localrepo.gathersupportedrequirements(ui)
localrepo.ensurerequirementsrecognized(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment