##// END OF EJS Templates
new type of repo: bundle://path/to/repo+/path/to/bundlename...
Benoit Boissinot -
r1945:dec6d3c1 default
parent child Browse files
Show More
@@ -8,7 +8,7 b''
8 from node import *
8 from node import *
9 from repo import *
9 from repo import *
10 from demandload import *
10 from demandload import *
11 demandload(globals(), "localrepo httprepo sshrepo statichttprepo")
11 demandload(globals(), "localrepo bundlerepo httprepo sshrepo statichttprepo")
12
12
13 def repository(ui, path=None, create=0):
13 def repository(ui, path=None, create=0):
14 if path:
14 if path:
@@ -24,5 +24,13 b' def repository(ui, path=None, create=0):'
24 ui, path.replace("old-http://", "http://"))
24 ui, path.replace("old-http://", "http://"))
25 if path.startswith("ssh://"):
25 if path.startswith("ssh://"):
26 return sshrepo.sshrepository(ui, path)
26 return sshrepo.sshrepository(ui, path)
27 if path.startswith("bundle://"):
28 path = path[9:]
29 s = path.split("+", 1)
30 if len(s) == 1:
31 repopath, bundlename = "", s[0]
32 else:
33 repopath, bundlename = s
34 return bundlerepo.bundlerepository(ui, repopath, bundlename)
27
35
28 return localrepo.localrepository(ui, path, create)
36 return localrepo.localrepository(ui, path, create)
General Comments 0
You need to be logged in to leave comments. Login now