diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -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: