comparison mercurial/hg.py @ 923:c7a3b88505cd

Add basic https support for pull
author mpm@selenic.com
date Tue, 16 Aug 2005 17:12:25 -0800
parents 1458d20df2a8
children b765e970c9ff
comparison
equal deleted inserted replaced
922:f4c7ad186983 923:c7a3b88505cd
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://"):