Mercurial > hg
diff mercurial/statichttprepo.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 | cb2dcfa5cade |
children | 5ccd791344f3 |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Wed Sep 12 15:05:51 2018 -0700 +++ b/mercurial/statichttprepo.py Wed Sep 12 15:07:27 2018 -0700 @@ -19,7 +19,6 @@ manifest, namespaces, pathutil, - store, url, util, vfs as vfsmod, @@ -179,7 +178,7 @@ localrepo.ensurerequirementscompatible(ui, requirements) # setup store - self.store = store.store(requirements, self.path, vfsclass) + self.store = localrepo.makestore(requirements, self.path, vfsclass) self.spath = self.store.path self.svfs = self.store.opener self.sjoin = self.store.join