path-suboption: use str for "multi_urls" path suboptions
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 00:47:16 +0200
changeset 50904 9f3e4b60bfe6
parent 50903 e054898624db
child 50905 dddd8e253c95
path-suboption: use str for "multi_urls" path suboptions That second argument refer to an attribute and do not needs to be bytes.
mercurial/utils/urlutil.py
--- a/mercurial/utils/urlutil.py	Fri Sep 01 13:08:02 2023 +0200
+++ b/mercurial/utils/urlutil.py	Wed Aug 30 00:47:16 2023 +0200
@@ -775,7 +775,7 @@
     return DELTA_REUSE_POLICIES.get(value)
 
 
-@pathsuboption(b'multi-urls', b'multi_urls', display=display_bool)
+@pathsuboption(b'multi-urls', 'multi_urls', display=display_bool)
 def multiurls_pathoption(ui, path, value):
     res = stringutil.parsebool(value)
     if res is None: