--- a/mercurial/localrepo.py Mon Jan 18 21:37:20 2021 +0530
+++ b/mercurial/localrepo.py Fri Jan 15 12:08:07 2021 +0530
@@ -575,6 +575,9 @@
and requirementsmod.SHARESAFE_REQUIREMENT
not in _readrequires(sharedvfs, True)
):
+ mismatch_warn = ui.configbool(
+ b'share', b'safe-mismatch.source-not-safe.warn'
+ )
mismatch_config = ui.config(
b'share', b'safe-mismatch.source-not-safe'
)
@@ -592,6 +595,7 @@
sharedvfs,
requirements,
mismatch_config,
+ mismatch_warn,
)
elif mismatch_config == b'abort':
raise error.Abort(
@@ -618,6 +622,9 @@
sourcerequires = _readrequires(sharedvfs, False)
if requirementsmod.SHARESAFE_REQUIREMENT in sourcerequires:
mismatch_config = ui.config(b'share', b'safe-mismatch.source-safe')
+ mismatch_warn = ui.configbool(
+ b'share', b'safe-mismatch.source-safe.warn'
+ )
if mismatch_config in (
b'upgrade-allow',
b'allow',
@@ -632,6 +639,7 @@
storevfs,
requirements,
mismatch_config,
+ mismatch_warn,
)
elif mismatch_config == b'abort':
raise error.Abort(