diff -r 5249ac2bc7a4 -r 4a58561ace0f mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Jan 20 12:13:17 2021 +0100 +++ b/mercurial/localrepo.py Wed Jan 20 12:23:40 2021 +0100 @@ -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 ( @@ -601,12 +602,10 @@ raise error.Abort( _( b"share source does not support exp-sharesafe 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 +645,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"