comparison mercurial/utils/urlutil.py @ 50930: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
comparison
equal deleted inserted replaced
50929:5f3c2adcc69c 50930:b59ad4292c7a
718 u.fragment = None 718 u.fragment = None
719 719
720 return bytes(u) 720 return bytes(u)
721 721
722 722
723 @pathsuboption(b'pushrev', b'pushrev') 723 @pathsuboption(b'pushrev', 'pushrev')
724 def pushrevpathoption(ui, path, value): 724 def pushrevpathoption(ui, path, value):
725 return value 725 return value
726 726
727 727
728 SUPPORTED_BOOKMARKS_MODES = { 728 SUPPORTED_BOOKMARKS_MODES = {