diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -3663,6 +3663,13 @@ ) dropped.add(bookmarks.BOOKMARKS_IN_STORE_REQUIREMENT) + if b'shared' in requirements or b'relshared' in requirements: + raise error.Abort( + _( + b"cannot create shared repository as source does not have 'store' requirement" + ) + ) + return dropped