changeset 50907:b59ad4292c7a

path-suboption: use str for "pushrev" suboptions That second argument refer to an attribute and do not needs to be bytes.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 30 Aug 2023 00:49:16 +0200
parents 5f3c2adcc69c
children ceac1bd816f7
files mercurial/utils/urlutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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