debugformat: handle non-boolean value for variant

This commit is contained in:
Boris Feld 2017-12-07 16:49:24 +01:00
parent c2382c14ab
commit 25342bccd7

View File

@ -874,6 +874,8 @@ def debugformat(ui, repo, **opts):
return '%s:' + (' ' * (maxvariantlength - len(name)))
def formatvalue(value):
if util.safehasattr(value, 'startswith'):
return value
if value:
return 'yes'
else: