Mercurial > hg-stable
changeset 50931:ceac1bd816f7
path-suboption: use str for "_pushloc" 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:52 +0200 |
parents | b59ad4292c7a |
children | 35885dbdc927 |
files | mercurial/utils/urlutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/utils/urlutil.py Wed Aug 30 00:49:16 2023 +0200 +++ b/mercurial/utils/urlutil.py Wed Aug 30 00:49:52 2023 +0200 @@ -695,7 +695,7 @@ return b'yes' if value else b'no' -@pathsuboption(b'pushurl', b'_pushloc') +@pathsuboption(b'pushurl', '_pushloc') def pushurlpathoption(ui, path, value): u = url(value) # Actually require a URL.