--- a/mercurial/revset.py Mon Apr 12 03:01:04 2021 +0200
+++ b/mercurial/revset.py Mon Apr 12 06:34:54 2021 +0200
@@ -41,6 +41,7 @@
from .utils import (
dateutil,
stringutil,
+ urlutil,
)
# helpers for processing parsed tree
@@ -2122,7 +2123,7 @@
# i18n: "remote" is a keyword
dest = getstring(l[1], _(b"remote requires a repository path"))
dest = repo.ui.expandpath(dest or b'default')
- dest, branches = hg.parseurl(dest)
+ dest, branches = urlutil.parseurl(dest)
other = hg.peer(repo, {}, dest)
n = other.lookup(q)