Mercurial > public > mercurial-scm > hg
diff mercurial/hg.py @ 1101:2cf5c8a4eae5
Separate out old-http support
- create new statichttprepo class
- pull remote bits out of localrepo
- pull remote bits out of util.opener
- switch hg.repository to use statichttprepo
author | mpm@selenic.com |
---|---|
date | Sat, 27 Aug 2005 16:28:53 -0700 |
parents | 221b5252864c |
children | c81d264cd17d |
line wrap: on
line diff
--- a/mercurial/hg.py Sat Aug 27 15:35:37 2005 -0700 +++ b/mercurial/hg.py Sat Aug 27 16:28:53 2005 -0700 @@ -9,7 +9,7 @@ from node import * from repo import * from demandload import * -demandload(globals(), "localrepo httprepo sshrepo") +demandload(globals(), "localrepo httprepo sshrepo statichttprepo") def repository(ui, path=None, create=0): if path: @@ -21,8 +21,8 @@ return httprepo.httprepository( ui, path.replace("hg://", "http://")) if path.startswith("old-http://"): - return localrepo.localrepository( - ui, util.opener, path.replace("old-http://", "http://")) + return statichttprepo.statichttprepository( + ui, path.replace("old-http://", "http://")) if path.startswith("ssh://"): return sshrepo.sshrepository(ui, path)