mercurial/hg.py
changeset 1101 2cf5c8a4eae5
parent 1094 221b5252864c
child 1102 c81d264cd17d
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -9,7 +9,7 @@ import util
 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 @@ def repository(ui, path=None, create=0):
             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)