diff -r bd326f3e0e14 -r 740d40ec15c3 mercurial/debugcommands.py --- 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: