changeset 35339: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 ead01b74be04
files mercurial/debugcommands.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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: