Show More
@@ -54,14 +54,10 b' class statichttprepository(localrepo.loc' | |||
|
54 | 54 | raise repo.RepoError(_("requirement '%s' not supported") % r) |
|
55 | 55 | |
|
56 | 56 | # setup store |
|
57 | if "store" in requirements: | |
|
58 |
|
|
|
59 | else: | |
|
60 |
|
|
|
61 | self.encodefn = store.encodefn(requirements) | |
|
62 | so = opener(self.spath) | |
|
63 | self.sopener = lambda path, *args, **kw: so( | |
|
64 | self.encodefn(path), *args, **kw) | |
|
57 | self.store = store.store(requirements, self.path, opener) | |
|
58 | self.spath = self.store.path | |
|
59 | self.sopener = self.store.opener | |
|
60 | self.sjoin = self.store.join | |
|
65 | 61 | |
|
66 | 62 | self.manifest = manifest.manifest(self.sopener) |
|
67 | 63 | self.changelog = changelog.changelog(self.sopener) |
@@ -119,12 +119,6 b' class encodedstore(_store):' | |||
|
119 | 119 | def join(self, f): |
|
120 | 120 | return os.path.join(self.path, self.encodefn(f)) |
|
121 | 121 | |
|
122 | def encodefn(requirements): | |
|
123 | if 'store' not in requirements: | |
|
124 | return lambda x: x | |
|
125 | else: | |
|
126 | return encodefilename | |
|
127 | ||
|
128 | 122 | def store(requirements, path, opener): |
|
129 | 123 | if 'store' not in requirements: |
|
130 | 124 | return directstore(path, opener) |
General Comments 0
You need to be logged in to leave comments.
Login now