hgext/largefiles/storefactory.py
changeset 50928 d718eddf01d9
parent 50891 1b265336c42b
child 50929 18c8c18993f0
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
    55         else:
    55         else:
    56             remote = hg.peer(repo or ui, {}, path)
    56             remote = hg.peer(repo or ui, {}, path)
    57 
    57 
    58     # The path could be a scheme so use Mercurial's normal functionality
    58     # The path could be a scheme so use Mercurial's normal functionality
    59     # to resolve the scheme to a repository and use its path
    59     # to resolve the scheme to a repository and use its path
    60     path = util.safehasattr(remote, 'url') and remote.url() or remote.path
    60     path = hasattr(remote, 'url') and remote.url() or remote.path
    61 
    61 
    62     match = _scheme_re.match(path)
    62     match = _scheme_re.match(path)
    63     if not match:  # regular filesystem path
    63     if not match:  # regular filesystem path
    64         scheme = b'file'
    64         scheme = b'file'
    65     else:
    65     else: