Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 35348:740d40ec15c3
debugformat: handle non-boolean value for variant
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 07 Dec 2017 16:49:24 +0100 |
parents | bd326f3e0e14 |
children | c0b6fa74e007 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Thu Dec 07 16:12:32 2017 +0100 +++ b/mercurial/debugcommands.py Thu Dec 07 16:49:24 2017 +0100 @@ -874,6 +874,8 @@ return '%s:' + (' ' * (maxvariantlength - len(name))) def formatvalue(value): + if util.safehasattr(value, 'startswith'): + return value if value: return 'yes' else: