Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 50715:0ab3956540a6
branching: merge stable into default
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 22 Jun 2023 11:28:17 +0200 |
parents | 45c7bada5200 e9c676ad18f1 |
children | b922c767b214 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jun 21 14:00:50 2023 -0400 +++ b/mercurial/commands.py Thu Jun 22 11:28:17 2023 +0200 @@ -5222,11 +5222,8 @@ assert subopt not in (b'name', b'url') if showsubopts: fm.plain(b'%s:%s = ' % (name, subopt)) - if isinstance(value, bool): - if value: - value = b'yes' - else: - value = b'no' + display = urlutil.path_suboptions_display[subopt] + value = display(value) fm.condwrite(showsubopts, subopt, b'%s\n', value) fm.end()