changeset 50906:5f3c2adcc69c

path-suboption: use str for "bookmarks_mode" 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:48:30 +0200
parents dddd8e253c95
children b59ad4292c7a
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:47:48 2023 +0200
+++ b/mercurial/utils/urlutil.py	Wed Aug 30 00:48:30 2023 +0200
@@ -732,7 +732,7 @@
 }
 
 
-@pathsuboption(b'bookmarks.mode', b'bookmarks_mode')
+@pathsuboption(b'bookmarks.mode', 'bookmarks_mode')
 def bookmarks_mode_option(ui, path, value):
     if value not in SUPPORTED_BOOKMARKS_MODES:
         path_name = path.name