diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -3548,6 +3548,7 @@ Extensions can wrap this function to specify custom requirements for new repositories. """ + usestore = False # If the repo is being created from a shared repository, we copy # its requirements. if b'sharedrepo' in createopts: @@ -3576,6 +3577,7 @@ requirements = {b'revlogv1'} if ui.configbool(b'format', b'usestore'): + usestore = True requirements.add(b'store') if ui.configbool(b'format', b'usefncache'): requirements.add(b'fncache') @@ -3636,7 +3638,7 @@ if createopts.get(b'lfs'): requirements.add(b'lfs') - if ui.configbool(b'format', b'bookmarks-in-store'): + if ui.configbool(b'format', b'bookmarks-in-store') and usestore: requirements.add(bookmarks.BOOKMARKS_IN_STORE_REQUIREMENT) if ui.configbool(b'format', b'use-persistent-nodemap'):