mercurial/commands.py
changeset 50718 0ab3956540a6
parent 50420 45c7bada5200
parent 50694 e9c676ad18f1
child 50823 b922c767b214
--- 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()