Mercurial > public > mercurial-scm > hg
diff mercurial/store.py @ 39698:f44187605315
localrepo: move store() from store module
I want logic related to requirements handling to be in the localrepo
module so it is all in one place.
I would have loved to inline this logic. Unfortunately, statichttprepo
also calls it. I didn't want to inline it twice. We could potentially
refactor statichttppeer. But meh.
Differential Revision: https://phab.mercurial-scm.org/D4574
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 12 Sep 2018 15:07:27 -0700 |
parents | 576eef1ab43d |
children | 2d45b549392f |
line wrap: on
line diff
--- a/mercurial/store.py Wed Sep 12 15:05:51 2018 -0700 +++ b/mercurial/store.py Wed Sep 12 15:07:27 2018 -0700 @@ -585,10 +585,3 @@ if e.startswith(path) and self._exists(e): return True return False - -def store(requirements, path, vfstype): - if 'store' in requirements: - if 'fncache' in requirements: - return fncachestore(path, vfstype, 'dotencode' in requirements) - return encodedstore(path, vfstype) - return basicstore(path, vfstype)