Skip to content
Snippets Groups Projects
Commit e7d082e4 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

dispatch: use the new API to resolve --repository

An even weirder feature of Mercurial is the ability to use `[paths]` alias as
value of `--repository`. The weird feature now use the new APIs.

Differential Revision: https://phab.mercurial-scm.org/D10424
parent c5c2936f
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@
from .utils import (
procutil,
stringutil,
urlutil,
)
......@@ -990,7 +991,7 @@
lui.readconfig(os.path.join(path, b".hg", b"hgrc-not-shared"), path)
if rpath:
path = lui.expandpath(rpath)
path = urlutil.get_clone_path(lui, rpath)[0]
lui = ui.copy()
if rcutil.use_repo_hgrc():
_readsharedsourceconfig(lui, path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment