mercurial/hg.py
changeset 2479 10ec8039e1d8
parent 2475 7a77934ece46
child 2549 e1831f06eef1
equal deleted inserted replaced
2478:287b7da4aeaa 2479:10ec8039e1d8
    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: