equal
deleted
inserted
replaced
407 httprepository.__init__(self, ui, path) |
407 httprepository.__init__(self, ui, path) |
408 |
408 |
409 def instance(ui, path, create): |
409 def instance(ui, path, create): |
410 if create: |
410 if create: |
411 raise util.Abort(_('cannot create new http repository')) |
411 raise util.Abort(_('cannot create new http repository')) |
412 if path.startswith('hg:'): |
|
413 ui.warn(_("hg:// syntax is deprecated, please use http:// instead\n")) |
|
414 path = 'http:' + path[3:] |
|
415 if path.startswith('https:'): |
412 if path.startswith('https:'): |
416 return httpsrepository(ui, path) |
413 return httpsrepository(ui, path) |
417 return httprepository(ui, path) |
414 return httprepository(ui, path) |