changeset 50616 | 2704dc40cf10 |
parent 50614 | 88362b8bc476 |
child 50641 | 89556caf3c66 |
50615:17a86f650059 | 50616:2704dc40cf10 |
---|---|
1716 |
1716 |
1717 fm = ui.formatter(b'debugformat', opts) |
1717 fm = ui.formatter(b'debugformat', opts) |
1718 if fm.isplain(): |
1718 if fm.isplain(): |
1719 |
1719 |
1720 def formatvalue(value): |
1720 def formatvalue(value): |
1721 if util.safehasattr(value, b'startswith'): |
1721 if util.safehasattr(value, 'startswith'): |
1722 return value |
1722 return value |
1723 if value: |
1723 if value: |
1724 return b'yes' |
1724 return b'yes' |
1725 else: |
1725 else: |
1726 return b'no' |
1726 return b'no' |