path: fix `url.copy` dropping the port
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 03 Dec 2022 05:53:13 +0100
changeset 49758 20f262ab6fd3
parent 49757 5f71fff8dc74
child 49759 cfe8d88a453e
path: fix `url.copy` dropping the port The copy method have been wrong for a while, but the new code reveals it.
mercurial/utils/urlutil.py
--- 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