Removed deprecated hg:// and old-http:// protocols (issue406)
authorThomas Arendsen Hein <thomas@intevation.de>
Sun, 08 Jul 2007 09:54:42 +0200
changeset 4853 bf10a03a6b24
parent 4852 edd07be943dd
child 4854 6215c0296473
Removed deprecated hg:// and old-http:// protocols (issue406)
mercurial/hg.py
mercurial/httprepo.py
mercurial/statichttprepo.py
--- a/mercurial/hg.py	Sat Jul 07 21:55:56 2007 -0700
+++ b/mercurial/hg.py	Sun Jul 08 09:54:42 2007 +0200
@@ -21,13 +21,11 @@
 schemes = {
     'bundle': bundlerepo,
     'file': _local,
-    'hg': httprepo,
     'http': httprepo,
     'https': httprepo,
-    'old-http': statichttprepo,
     'ssh': sshrepo,
     'static-http': statichttprepo,
-    }
+}
 
 def _lookup(path):
     scheme = 'file'
--- a/mercurial/httprepo.py	Sat Jul 07 21:55:56 2007 -0700
+++ b/mercurial/httprepo.py	Sun Jul 08 09:54:42 2007 +0200
@@ -409,9 +409,6 @@
 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)
--- a/mercurial/statichttprepo.py	Sat Jul 07 21:55:56 2007 -0700
+++ b/mercurial/statichttprepo.py	Sun Jul 08 09:54:42 2007 +0200
@@ -75,10 +75,4 @@
 def instance(ui, path, create):
     if create:
         raise util.Abort(_('cannot create new static-http repository'))
-    if path.startswith('old-http:'):
-        ui.warn(_("old-http:// syntax is deprecated, "
-                  "please use static-http:// instead\n"))
-        path = path[4:]
-    else:
-        path = path[7:]
-    return statichttprepository(ui, path)
+    return statichttprepository(ui, path[7:])