comparison 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
comparison
equal deleted inserted replaced
50711:e5c1e7aec973 50715:0ab3956540a6
5220 fm.condwrite(not ui.quiet, b'url', b'%s\n', hidepassword(path.rawloc)) 5220 fm.condwrite(not ui.quiet, b'url', b'%s\n', hidepassword(path.rawloc))
5221 for subopt, value in sorted(path.suboptions.items()): 5221 for subopt, value in sorted(path.suboptions.items()):
5222 assert subopt not in (b'name', b'url') 5222 assert subopt not in (b'name', b'url')
5223 if showsubopts: 5223 if showsubopts:
5224 fm.plain(b'%s:%s = ' % (name, subopt)) 5224 fm.plain(b'%s:%s = ' % (name, subopt))
5225 if isinstance(value, bool): 5225 display = urlutil.path_suboptions_display[subopt]
5226 if value: 5226 value = display(value)
5227 value = b'yes'
5228 else:
5229 value = b'no'
5230 fm.condwrite(showsubopts, subopt, b'%s\n', value) 5227 fm.condwrite(showsubopts, subopt, b'%s\n', value)
5231 5228
5232 fm.end() 5229 fm.end()
5233 5230
5234 if search and not pathitems: 5231 if search and not pathitems: