path-suboption: use str for "_pushloc" suboptions
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 00:49:52 +0200
changeset 50908 ceac1bd816f7
parent 50907 b59ad4292c7a
child 50909 35885dbdc927
path-suboption: use str for "_pushloc" suboptions That second argument refer to an attribute and do not needs to be bytes.
mercurial/utils/urlutil.py
--- a/mercurial/utils/urlutil.py	Wed Aug 30 00:49:16 2023 +0200
+++ b/mercurial/utils/urlutil.py	Wed Aug 30 00:49:52 2023 +0200
@@ -695,7 +695,7 @@
     return b'yes' if value else b'no'
 
 
-@pathsuboption(b'pushurl', b'_pushloc')
+@pathsuboption(b'pushurl', '_pushloc')
 def pushurlpathoption(ui, path, value):
     u = url(value)
     # Actually require a URL.