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