Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/utils/urlutil.py @ 50927:9f3e4b60bfe6
path-suboption: use str for "multi_urls" path 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:47:16 +0200 |
parents | 6ca865080479 |
children | dddd8e253c95 |
comparison
equal
deleted
inserted
replaced
50926:e054898624db | 50927:9f3e4b60bfe6 |
---|---|
773 msg %= (path_name, value) | 773 msg %= (path_name, value) |
774 ui.warn(msg) | 774 ui.warn(msg) |
775 return DELTA_REUSE_POLICIES.get(value) | 775 return DELTA_REUSE_POLICIES.get(value) |
776 | 776 |
777 | 777 |
778 @pathsuboption(b'multi-urls', b'multi_urls', display=display_bool) | 778 @pathsuboption(b'multi-urls', 'multi_urls', display=display_bool) |
779 def multiurls_pathoption(ui, path, value): | 779 def multiurls_pathoption(ui, path, value): |
780 res = stringutil.parsebool(value) | 780 res = stringutil.parsebool(value) |
781 if res is None: | 781 if res is None: |
782 ui.warn( | 782 ui.warn( |
783 _(b'(paths.%s:multi-urls not a boolean; ignoring)\n') % path.name | 783 _(b'(paths.%s:multi-urls not a boolean; ignoring)\n') % path.name |