diff 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
line wrap: on
line diff
--- a/mercurial/httprepo.py
+++ b/mercurial/httprepo.py
@@ -409,9 +409,6 @@ class httpsrepository(httprepository):
 def instance(ui, path, create):
     if create:
         raise util.Abort(_('cannot create new http repository'))
-    if path.startswith('hg:'):
-        ui.warn(_("hg:// syntax is deprecated, please use http:// instead\n"))
-        path = 'http:' + path[3:]
     if path.startswith('https:'):
         return httpsrepository(ui, path)
     return httprepository(ui, path)