Mercurial > hg
changeset 46935:ae4c0f279282
mq: use the new `get_clone_path` to get the remote url
We stop using `ui.expandpath` to use a function with a more defined semantic. This will help us to make it an option to point [paths] entry to multiple destination.
Differential Revision: https://phab.mercurial-scm.org/D10402
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 14 Apr 2021 10:51:31 +0200 |
parents | ebb13f9a9ba8 |
children | 1998a8311c48 |
files | hgext/mq.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Wed Apr 14 10:35:40 2021 +0200 +++ b/hgext/mq.py Wed Apr 14 10:51:31 2021 +0200 @@ -2863,11 +2863,12 @@ # main repo (destination and sources) if dest is None: dest = hg.defaultdest(source) - sr = hg.peer(ui, opts, ui.expandpath(source)) + __, source_path, __ = urlutil.get_clone_path(ui, source) + sr = hg.peer(ui, opts, source_path) # patches repo (source only) if opts.get(b'patches'): - patchespath = ui.expandpath(opts.get(b'patches')) + __, patchespath, __ = urlutil.get_clone_path(ui, opts.get(b'patches')) else: patchespath = patchdir(sr) try: