comparison mercurial/utils/urlutil.py @ 50903: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
comparison
equal deleted inserted replaced
50902:dddd8e253c95 50903:5f3c2adcc69c
730 b'mirror', 730 b'mirror',
731 b'ignore', 731 b'ignore',
732 } 732 }
733 733
734 734
735 @pathsuboption(b'bookmarks.mode', b'bookmarks_mode') 735 @pathsuboption(b'bookmarks.mode', 'bookmarks_mode')
736 def bookmarks_mode_option(ui, path, value): 736 def bookmarks_mode_option(ui, path, value):
737 if value not in SUPPORTED_BOOKMARKS_MODES: 737 if value not in SUPPORTED_BOOKMARKS_MODES:
738 path_name = path.name 738 path_name = path.name
739 if path_name is None: 739 if path_name is None:
740 # this is an "anonymous" path, config comes from the global one 740 # this is an "anonymous" path, config comes from the global one