Show More
@@ -63,11 +63,11 b' def repository(ui, path=None, create=0):' | |||||
63 | if scheme: |
|
63 | if scheme: | |
64 | c = scheme.find(':') |
|
64 | c = scheme.find(':') | |
65 | scheme = c >= 0 and scheme[:c] |
|
65 | scheme = c >= 0 and scheme[:c] | |
66 | try: |
|
|||
67 |
|
|
66 | ctor = schemes.get(scheme) or schemes['file'] | |
68 |
|
|
67 | if create: | |
|
68 | try: | |||
69 | return ctor(ui, path, create) |
|
69 | return ctor(ui, path, create) | |
70 | return ctor(ui, path) |
|
|||
71 | except TypeError: |
|
70 | except TypeError: | |
72 | raise util.Abort(_('cannot create new repository over "%s" protocol') % |
|
71 | raise util.Abort(_('cannot create new repository over "%s" protocol') % | |
73 | scheme) |
|
72 | scheme) | |
|
73 | return ctor(ui, path) |
General Comments 0
You need to be logged in to leave comments.
Login now