# HG changeset patch # User Pierre-Yves David # Date 2022-12-03 05:16:45 # Node ID 5bceea1a8234e0ae76ac0440c30716c384bd7f5b # Parent cfe8d88a453e8c7fa376517c63508c36ef460674 logexchange: use the proper accessors to get the remote url There is an official method, let us use it. this will prevent a crash when the private attribute disappear. diff --git a/mercurial/logexchange.py b/mercurial/logexchange.py --- a/mercurial/logexchange.py +++ b/mercurial/logexchange.py @@ -113,7 +113,7 @@ def activepath(repo, remote): if local: rpath = util.pconvert(remote._repo.root) elif not isinstance(remote, bytes): - rpath = remote._url + rpath = remote.url() # represent the remotepath with user defined path name if exists for path, url in repo.ui.configitems(b'paths'):