Mercurial > hg-stable
changeset 49872:5bceea1a8234
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Dec 2022 06:16:45 +0100 |
parents | cfe8d88a453e |
children | 73ed1d13c0bf |
files | mercurial/logexchange.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/logexchange.py Sat Dec 03 00:24:28 2022 +0100 +++ b/mercurial/logexchange.py Sat Dec 03 06:16:45 2022 +0100 @@ -113,7 +113,7 @@ 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'):