Mercurial > hg
comparison hgext/largefiles/basestore.py @ 18489:f1700480bef7 stable
largefiles: allow use of urls with #revision
largefiles tried to create a peer directly with the specified url. That caused
abort: unsupported URL component: "..."
if a revision was specified in the url.
The branch name do not matter for largefiles' use of remote peers. Largefiles
will be shared among all branches anyway.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 28 Jan 2013 15:19:44 +0100 |
parents | 1067a6240f86 |
children | fb0e8966a4be 0ac00315875f |
comparison
equal
deleted
inserted
replaced
18488:a977b42df8b3 | 18489:f1700480bef7 |
---|---|
163 # meaning the current directory. | 163 # meaning the current directory. |
164 if path == 'default-push' or path == 'default': | 164 if path == 'default-push' or path == 'default': |
165 path = '' | 165 path = '' |
166 remote = repo | 166 remote = repo |
167 else: | 167 else: |
168 path, _branches = hg.parseurl(path) | |
168 remote = hg.peer(repo, {}, path) | 169 remote = hg.peer(repo, {}, path) |
169 | 170 |
170 # The path could be a scheme so use Mercurial's normal functionality | 171 # The path could be a scheme so use Mercurial's normal functionality |
171 # to resolve the scheme to a repository and use its path | 172 # to resolve the scheme to a repository and use its path |
172 path = util.safehasattr(remote, 'url') and remote.url() or remote.path | 173 path = util.safehasattr(remote, 'url') and remote.url() or remote.path |