mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
debugformat: handle non-boolean value for variant
This commit is contained in:
parent
c2382c14ab
commit
25342bccd7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user