--- a/mercurial/util.py Thu Mar 18 12:02:01 2021 +0100
+++ b/mercurial/util.py Tue Mar 23 23:55:33 2021 +0100
@@ -3144,6 +3144,21 @@
if v is not None:
setattr(self, a, urlreq.unquote(v))
+ def copy(self):
+ u = url(b'temporary useless value')
+ u.path = self.path
+ u.scheme = self.scheme
+ u.user = self.user
+ u.passwd = self.passwd
+ u.host = self.host
+ u.path = self.path
+ u.query = self.query
+ u.fragment = self.fragment
+ u._localpath = self._localpath
+ u._hostport = self._hostport
+ u._origpath = self._origpath
+ return u
+
@encoding.strmethod
def __repr__(self):
attrs = []