2197 |
2197 |
2198 self.readerr() |
2198 self.readerr() |
2199 l = int(self.pipei.readline()) |
2199 l = int(self.pipei.readline()) |
2200 return self.pipei.read(l) != "" |
2200 return self.pipei.read(l) != "" |
2201 |
2201 |
|
2202 class httpsrepository(httprepository): |
|
2203 pass |
|
2204 |
2202 def repository(ui, path=None, create=0): |
2205 def repository(ui, path=None, create=0): |
2203 if path: |
2206 if path: |
2204 if path.startswith("http://"): |
2207 if path.startswith("http://"): |
2205 return httprepository(ui, path) |
2208 return httprepository(ui, path) |
|
2209 if path.startswith("https://"): |
|
2210 return httpsrepository(ui, path) |
2206 if path.startswith("hg://"): |
2211 if path.startswith("hg://"): |
2207 return httprepository(ui, path.replace("hg://", "http://")) |
2212 return httprepository(ui, path.replace("hg://", "http://")) |
2208 if path.startswith("old-http://"): |
2213 if path.startswith("old-http://"): |
2209 return localrepository(ui, path.replace("old-http://", "http://")) |
2214 return localrepository(ui, path.replace("old-http://", "http://")) |
2210 if path.startswith("ssh://"): |
2215 if path.startswith("ssh://"): |