# HG changeset patch # User Pierre-Yves David # Date 2022-12-03 04:53:13 # Node ID 20f262ab6fd3f97b5b335e7c572e15b4b77e9782 # Parent 5f71fff8dc74c83347d422ca01e60cb336a3937d path: fix `url.copy` dropping the port The copy method have been wrong for a while, but the new code reveals it. diff --git a/mercurial/utils/urlutil.py b/mercurial/utils/urlutil.py --- a/mercurial/utils/urlutil.py +++ b/mercurial/utils/urlutil.py @@ -241,7 +241,7 @@ class url: 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