# HG changeset patch # User Pierre-Yves David # Date 1693349356 -7200 # Node ID b59ad4292c7a6e712c14a910d0fa0cc3a3175f53 # Parent 5f3c2adcc69c2db9356e47c65d63faddd5ca19b1 path-suboption: use str for "pushrev" suboptions That second argument refer to an attribute and do not needs to be bytes. diff -r 5f3c2adcc69c -r b59ad4292c7a mercurial/utils/urlutil.py --- a/mercurial/utils/urlutil.py Wed Aug 30 00:48:30 2023 +0200 +++ b/mercurial/utils/urlutil.py Wed Aug 30 00:49:16 2023 +0200 @@ -720,7 +720,7 @@ return bytes(u) -@pathsuboption(b'pushrev', b'pushrev') +@pathsuboption(b'pushrev', 'pushrev') def pushrevpathoption(ui, path, value): return value