equal
deleted
inserted
replaced
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) |