changeset 49758:20f262ab6fd3

path: fix `url.copy` dropping the port The copy method have been wrong for a while, but the new code reveals it.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 03 Dec 2022 05:53:13 +0100
parents 5f71fff8dc74
children cfe8d88a453e
files mercurial/utils/urlutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/utils/urlutil.py	Fri Dec 02 18:19:59 2022 +0100
+++ b/mercurial/utils/urlutil.py	Sat Dec 03 05:53:13 2022 +0100
@@ -241,7 +241,7 @@
         u.user = self.user
         u.passwd = self.passwd
         u.host = self.host
-        u.path = self.path
+        u.port = self.port
         u.query = self.query
         u.fragment = self.fragment
         u._localpath = self._localpath