comparison mercurial/commands.py @ 50400:ba602ddcb296 stable

ui: fix crash in `hg paths` when pulled-delta-reuse-policy is in use The crash is a result of [value] being an int, but being used as a bytestring.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Fri, 09 Jun 2023 14:32:09 +0100
parents 80784ac09460
children 9d4a2ea3dcb9
comparison
equal deleted inserted replaced
50399:ae74a60ad583 50400:ba602ddcb296
5217 if isinstance(value, bool): 5217 if isinstance(value, bool):
5218 if value: 5218 if value:
5219 value = b'yes' 5219 value = b'yes'
5220 else: 5220 else:
5221 value = b'no' 5221 value = b'no'
5222 fm.condwrite(showsubopts, subopt, b'%s\n', value) 5222 fm.condwrite(showsubopts, subopt, b'%s\n', pycompat.bytestr(value))
5223 5223
5224 fm.end() 5224 fm.end()
5225 5225
5226 if search and not pathitems: 5226 if search and not pathitems:
5227 if not ui.quiet: 5227 if not ui.quiet: