[Commented On] D11994: requirements: do not warn about dropping share-safe, unless explicitly set
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Mon Jan 24 16:22:35 UTC 2022
baymax added a comment.
baymax updated this revision to Diff 31817.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11994?vs=31803&id=31817
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11994/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11994
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
@@ -3719,13 +3719,13 @@
)
if requirementsmod.SHARESAFE_REQUIREMENT in requirements:
- ui.warn(
- _(
+ if ui.hasconfig(b'format', b'use-share-safe'):
+ msg = _(
b"ignoring enabled 'format.use-share-safe' config because "
b"it is incompatible with disabled 'format.usestore'"
b" config\n"
)
- )
+ ui.warn(msg)
dropped.add(requirementsmod.SHARESAFE_REQUIREMENT)
return dropped
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/71878f6f/attachment-0002.html>
More information about the Mercurial-patches
mailing list