[Commented On] D11996: share-safe: add support for static-http repository
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Mon Jan 24 15:02:53 UTC 2022
baymax added a comment.
baymax updated this revision to Diff 31805.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11996?vs=31651&id=31805
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11996/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11996
AFFECTED FILES
mercurial/statichttprepo.py
CHANGE DETAILS
diff --git a/mercurial/statichttprepo.py b/mercurial/statichttprepo.py
--- a/mercurial/statichttprepo.py
+++ b/mercurial/statichttprepo.py
@@ -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(
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/20220124/06272dc7/attachment-0002.html>
More information about the Mercurial-patches
mailing list