equal
deleted
inserted
replaced
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: |