# HG changeset patch # User Pierre-Yves David # Date 2023-08-29 22:47:48 # Node ID dddd8e253c95b5ac4b092a7ab375e1aa6d87e232 # Parent 9f3e4b60bfe60a7026021af1b5b2551bbcb6ef48 path-suboption: use str for "delta_reuse_policy" suboptions That second argument refer to an attribute and do not needs to be bytes. diff --git a/mercurial/utils/urlutil.py b/mercurial/utils/urlutil.py --- a/mercurial/utils/urlutil.py +++ b/mercurial/utils/urlutil.py @@ -758,7 +758,7 @@ DELTA_REUSE_POLICIES_NAME = dict(i[::-1] @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):