--- a/mercurial/localrepo.py Thu Jan 28 00:14:15 2021 -0800
+++ b/mercurial/localrepo.py Fri Jan 29 17:32:09 2021 +0530
@@ -568,6 +568,7 @@
# repository was shared the old way. We check the share source .hg/requires
# for SHARESAFE_REQUIREMENT to detect whether the current repository needs
# to be reshared
+ hint = _("see `hg help config.format.use-share-safe` for more information")
if requirementsmod.SHARESAFE_REQUIREMENT in requirements:
if (
@@ -599,14 +600,10 @@
)
elif mismatch_config == b'abort':
raise error.Abort(
- _(
- b"share source does not support exp-sharesafe requirement"
- )
+ _(b"share source does not support share-safe requirement"),
+ hint=hint,
)
else:
- hint = _(
- "run `hg help config.share.safe-mismatch.source-not-safe`"
- )
raise error.Abort(
_(
b"share-safe mismatch with source.\nUnrecognized"
@@ -646,10 +643,10 @@
_(
b'version mismatch: source uses share-safe'
b' functionality while the current share does not'
- )
+ ),
+ hint=hint,
)
else:
- hint = _("run `hg help config.share.safe-mismatch.source-safe`")
raise error.Abort(
_(
b"share-safe mismatch with source.\nUnrecognized"