##// END OF EJS Templates
statichttp: use 'repo.vfs' as the main attribute...
Pierre-Yves David -
r31147:e04ab2a5 default
parent child Browse files
Show More
@@ -121,9 +121,9 b' class statichttprepository(localrepo.loc'
121 u = util.url(path.rstrip('/') + "/.hg")
121 u = util.url(path.rstrip('/') + "/.hg")
122 self.path, authinfo = u.authinfo()
122 self.path, authinfo = u.authinfo()
123
123
124 opener = build_opener(ui, authinfo)
124 vfsclass = build_opener(ui, authinfo)
125 self.opener = opener(self.path)
125 self.vfs = vfsclass(self.path)
126 self.vfs = self.opener
126 self.opener = self.vfs
127 self._phasedefaults = []
127 self._phasedefaults = []
128
128
129 self.names = namespaces.namespaces()
129 self.names = namespaces.namespaces()
@@ -148,7 +148,7 b' class statichttprepository(localrepo.loc'
148 raise error.RepoError(msg)
148 raise error.RepoError(msg)
149
149
150 # setup store
150 # setup store
151 self.store = store.store(requirements, self.path, opener)
151 self.store = store.store(requirements, self.path, vfsclass)
152 self.spath = self.store.path
152 self.spath = self.store.path
153 self.svfs = self.store.opener
153 self.svfs = self.store.opener
154 self.sjoin = self.store.join
154 self.sjoin = self.store.join
General Comments 0
You need to be logged in to leave comments. Login now