diff mercurial/statichttprepo.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 63b9d2deed48
children 639935f2e63a
line wrap: on
line diff
--- a/mercurial/statichttprepo.py
+++ b/mercurial/statichttprepo.py
@@ -75,10 +75,4 @@ class statichttprepository(localrepo.loc
 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:])