path-suboption: use str for "delta_reuse_policy" suboptions
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 00:47:48 +0200
changeset 50905 dddd8e253c95
parent 50904 9f3e4b60bfe6
child 50906 5f3c2adcc69c
path-suboption: use str for "delta_reuse_policy" suboptions That second argument refer to an attribute and do not needs to be bytes.
mercurial/utils/urlutil.py
--- a/mercurial/utils/urlutil.py	Wed Aug 30 00:47:16 2023 +0200
+++ b/mercurial/utils/urlutil.py	Wed Aug 30 00:47:48 2023 +0200
@@ -758,7 +758,7 @@
 
 @pathsuboption(
     b'pulled-delta-reuse-policy',
-    b'delta_reuse_policy',
+    'delta_reuse_policy',
     display=DELTA_REUSE_POLICIES_NAME.get,
 )
 def delta_reuse_policy(ui, path, value):