mercurial/localrepo.py
changeset 46238 9796cf108e4e
parent 46236 eec47efe219d
child 46263 d46646ce3158
--- a/mercurial/localrepo.py	Fri Jan 08 18:07:33 2021 +0530
+++ b/mercurial/localrepo.py	Fri Jan 08 21:34:16 2021 +0530
@@ -607,7 +607,9 @@
                     storevfs,
                     requirements,
                 )
-            else:
+            elif ui.configbool(
+                b'experimental', b'sharesafe-warn-outdated-shares'
+            ):
                 ui.warn(
                     _(
                         b'warning: source repository supports share-safe functionality.'