mercurial/httprepo.py
changeset 4840 bf10a03a6b24
parent 4739 1da35d1e7ef9
child 5082 79373ec3f27d
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)