path-suboption: use str for "pushrev" suboptions
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 00:49:16 +0200
changeset 50907 b59ad4292c7a
parent 50906 5f3c2adcc69c
child 50908 ceac1bd816f7
path-suboption: use str for "pushrev" 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:48:30 2023 +0200
+++ b/mercurial/utils/urlutil.py	Wed Aug 30 00:49:16 2023 +0200
@@ -720,7 +720,7 @@
     return bytes(u)
 
 
-@pathsuboption(b'pushrev', b'pushrev')
+@pathsuboption(b'pushrev', 'pushrev')
 def pushrevpathoption(ui, path, value):
     return value