Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statichttprepo.py @ 6897:faea0d27e38f
statichttp: use store class
This lets us nix store.encodefn.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Aug 2008 20:18:43 -0500 |
parents | 80e51429cb9a |
children | 907e4e9bd3c4 |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Wed Aug 13 20:18:42 2008 -0500 +++ b/mercurial/statichttprepo.py Wed Aug 13 20:18:43 2008 -0500 @@ -54,14 +54,10 @@ raise repo.RepoError(_("requirement '%s' not supported") % r) # setup store - if "store" in requirements: - self.spath = self.path + "/store" - else: - self.spath = self.path - self.encodefn = store.encodefn(requirements) - so = opener(self.spath) - self.sopener = lambda path, *args, **kw: so( - self.encodefn(path), *args, **kw) + self.store = store.store(requirements, self.path, opener) + self.spath = self.store.path + self.sopener = self.store.opener + self.sjoin = self.store.join self.manifest = manifest.manifest(self.sopener) self.changelog = changelog.changelog(self.sopener)