diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -1613,6 +1613,9 @@ writerequires(repo.vfs, wcreq) if storereq is not None: writerequires(repo.svfs, storereq) + elif repo.ui.configbool(b'format', b'usestore'): + # only remove store requires if we are using store + repo.svfs.tryunlink(b'requires') def writerequires(opener, requirements):