equal
deleted
inserted
replaced
69 return userpass + '@' + hostport |
69 return userpass + '@' + hostport |
70 return hostport |
70 return hostport |
71 |
71 |
72 class httprepository(remoterepository): |
72 class httprepository(remoterepository): |
73 def __init__(self, ui, path): |
73 def __init__(self, ui, path): |
|
74 self.capabilities = () |
74 scheme, netloc, urlpath, query, frag = urlparse.urlsplit(path) |
75 scheme, netloc, urlpath, query, frag = urlparse.urlsplit(path) |
75 if query or frag: |
76 if query or frag: |
76 raise util.Abort(_('unsupported URL component: "%s"') % |
77 raise util.Abort(_('unsupported URL component: "%s"') % |
77 (query or frag)) |
78 (query or frag)) |
78 if not urlpath: urlpath = '/' |
79 if not urlpath: urlpath = '/' |
232 raise IOError(None, _('connection ended unexpectedly')) |
233 raise IOError(None, _('connection ended unexpectedly')) |
233 yield zd.flush() |
234 yield zd.flush() |
234 |
235 |
235 return util.chunkbuffer(zgenerator(util.filechunkiter(f))) |
236 return util.chunkbuffer(zgenerator(util.filechunkiter(f))) |
236 |
237 |
|
238 def unbundle(self, cg, heads, source): |
|
239 raise util.Abort(_('operation not supported over http')) |
|
240 |
237 class httpsrepository(httprepository): |
241 class httpsrepository(httprepository): |
238 pass |
242 pass |