diff mercurial/localrepo.py @ 46238:9796cf108e4e

sharesafe: make warning about outdated share configurable If the source repository upgrades to use sharesafe mode, we show a warning in shares. This patch makes that warning configurable and some might not want their users see this warning. Differential Revision: https://phab.mercurial-scm.org/D9691
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 08 Jan 2021 21:34:16 +0530
parents eec47efe219d
children d46646ce3158
line wrap: on
line diff
--- 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.'