Mercurial > hg > mercurial-crew-with-dirclash
comparison 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 |
comparison
equal
deleted
inserted
replaced
4839:edd07be943dd | 4840:bf10a03a6b24 |
---|---|
73 return False | 73 return False |
74 | 74 |
75 def instance(ui, path, create): | 75 def instance(ui, path, create): |
76 if create: | 76 if create: |
77 raise util.Abort(_('cannot create new static-http repository')) | 77 raise util.Abort(_('cannot create new static-http repository')) |
78 if path.startswith('old-http:'): | 78 return statichttprepository(ui, path[7:]) |
79 ui.warn(_("old-http:// syntax is deprecated, " | |
80 "please use static-http:// instead\n")) | |
81 path = path[4:] | |
82 else: | |
83 path = path[7:] | |
84 return statichttprepository(ui, path) |