##// END OF EJS Templates
parse url schemes more strictly....
Vadim Gelfer -
r2595:edb66cb0 default
parent child Browse files
Show More
@@ -58,11 +58,14 b' schemes = {'
58 58 }
59 59
60 60 def repository(ui, path=None, create=0):
61 if not path: path = ''
62 scheme = path
63 if scheme:
64 scheme = scheme.split(":", 1)[0]
65 ctor = schemes.get(scheme) or schemes['file']
61 scheme = None
62 if path:
63 c = path.find(':')
64 if c > 0:
65 scheme = schemes.get(path[:c])
66 else:
67 path = ''
68 ctor = scheme or schemes['file']
66 69 if create:
67 70 try:
68 71 return ctor(ui, path, create)
General Comments 0
You need to be logged in to leave comments. Login now