##// END OF EJS Templates
path: pass `path` to `peer` in largefiles...
marmoute -
r50628:8d0a220c default
parent child Browse files
Show More
@@ -36,22 +36,23 b' def openstore(repo=None, remote=None, pu'
36 b'lfpullsource', repo, ui, lfpullsource
36 b'lfpullsource', repo, ui, lfpullsource
37 )
37 )
38 else:
38 else:
39 path, _branches = urlutil.get_unique_pull_path(
39 path = urlutil.get_unique_pull_path_obj(
40 b'lfpullsource', repo, ui, lfpullsource
40 b'lfpullsource', ui, lfpullsource
41 )
41 )
42
42
43 # XXX we should not explicitly pass b'default', as this will result in
43 # XXX we should not explicitly pass b'default', as this will result in
44 # b'default' being returned if no `paths.default` was defined. We
44 # b'default' being returned if no `paths.default` was defined. We
45 # should explicitely handle the lack of value instead.
45 # should explicitely handle the lack of value instead.
46 if repo is None:
46 if repo is None:
47 path, _branches = urlutil.get_unique_pull_path(
47 path = urlutil.get_unique_pull_path_obj(
48 b'lfs', repo, ui, b'default'
48 b'lfs',
49 ui,
50 b'default',
49 )
51 )
50 remote = hg.peer(repo or ui, {}, path)
52 remote = hg.peer(repo or ui, {}, path)
51 elif path == b'default-push' or path == b'default':
53 elif path.loc == b'default-push' or path.loc == b'default':
52 remote = repo
54 remote = repo
53 else:
55 else:
54 path, _branches = urlutil.parseurl(path)
55 remote = hg.peer(repo or ui, {}, path)
56 remote = hg.peer(repo or ui, {}, path)
56
57
57 # 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
General Comments 0
You need to be logged in to leave comments. Login now