equal
deleted
inserted
replaced
53 'ssh': lambda ui, path: sshrepo.sshrepository(ui, path), |
53 'ssh': lambda ui, path: sshrepo.sshrepository(ui, path), |
54 'static-http': static_http, |
54 'static-http': static_http, |
55 } |
55 } |
56 |
56 |
57 def repository(ui, path=None, create=0): |
57 def repository(ui, path=None, create=0): |
|
58 if not path: path = '' |
58 scheme = path |
59 scheme = path |
59 if scheme: |
60 if scheme: |
60 c = scheme.find(':') |
61 c = scheme.find(':') |
61 scheme = c >= 0 and scheme[:c] |
62 scheme = c >= 0 and scheme[:c] |
62 try: |
63 try: |