Mercurial > hg
changeset 48239:08630dd719f9
path: unify path creation in `get_pull_paths`
This remove a special case and will make it possible to return `path` instance
directly.
Differential Revision: https://phab.mercurial-scm.org/D11672
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 15 Oct 2021 02:36:54 +0200 |
parents | ea50caada82d |
children | 607e9322fc89 |
files | mercurial/utils/urlutil.py |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/utils/urlutil.py Fri Oct 15 02:36:38 2021 +0200 +++ b/mercurial/utils/urlutil.py Fri Oct 15 02:36:54 2021 +0200 @@ -512,13 +512,8 @@ for p in ui.paths[source]: yield parseurl(p.rawloc, default_branches) else: - # Try to resolve as a local path or URI. - path = try_path(ui, source) - if path is not None: - url = path.rawloc - else: - url = source - yield parseurl(url, default_branches) + p = path(ui, None, source, validate_path=False) + yield parseurl(p.rawloc, default_branches) def get_unique_push_path(action, repo, ui, dest=None):