mercurial/localrepo.py
changeset 46331 8788981c95f8
parent 46312 28899b6f4480
child 46332 cc3452d2dfa4
--- a/mercurial/localrepo.py	Mon Jan 18 19:50:21 2021 +0530
+++ b/mercurial/localrepo.py	Thu Jan 14 21:34:12 2021 +0530
@@ -608,13 +608,11 @@
                     storevfs,
                     requirements,
                 )
-            elif ui.configbool(
-                b'experimental', b'sharesafe-warn-outdated-shares'
-            ):
-                ui.warn(
+            else:
+                raise error.Abort(
                     _(
-                        b'warning: source repository supports share-safe functionality.'
-                        b' Reshare to upgrade.\n'
+                        b'version mismatch: source uses share-safe'
+                        b' functionality while the current share does not'
                     )
                 )