Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/httprepo.py @ 4840:bf10a03a6b24
Removed deprecated hg:// and old-http:// protocols (issue406)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 08 Jul 2007 09:54:42 +0200 |
parents | 1da35d1e7ef9 |
children | 79373ec3f27d |
comparison
equal
deleted
inserted
replaced
4839:edd07be943dd | 4840:bf10a03a6b24 |
---|---|
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) |