comparison mercurial/hg.py @ 1102:c81d264cd17d

localrepo: minor opener usage restructuring
author mpm@selenic.com
date Sat, 27 Aug 2005 16:34:54 -0700
parents 2cf5c8a4eae5
children dec6d3c13dbf
comparison
equal deleted inserted replaced
1101:2cf5c8a4eae5 1102:c81d264cd17d
3 # Copyright 2005 Matt Mackall <mpm@selenic.com> 3 # Copyright 2005 Matt Mackall <mpm@selenic.com>
4 # 4 #
5 # This software may be used and distributed according to the terms 5 # This software may be used and distributed according to the terms
6 # of the GNU General Public License, incorporated herein by reference. 6 # of the GNU General Public License, incorporated herein by reference.
7 7
8 import util
9 from node import * 8 from node import *
10 from repo import * 9 from repo import *
11 from demandload import * 10 from demandload import *
12 demandload(globals(), "localrepo httprepo sshrepo statichttprepo") 11 demandload(globals(), "localrepo httprepo sshrepo statichttprepo")
13 12
24 return statichttprepo.statichttprepository( 23 return statichttprepo.statichttprepository(
25 ui, path.replace("old-http://", "http://")) 24 ui, path.replace("old-http://", "http://"))
26 if path.startswith("ssh://"): 25 if path.startswith("ssh://"):
27 return sshrepo.sshrepository(ui, path) 26 return sshrepo.sshrepository(ui, path)
28 27
29 return localrepo.localrepository(ui, util.opener, path, create) 28 return localrepo.localrepository(ui, path, create)