Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statichttprepo.py @ 4853: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 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:])