debugformat: handle non-boolean value for variant
authorBoris Feld <boris.feld@octobus.net>
Thu, 07 Dec 2017 16:49:24 +0100
changeset 35339 740d40ec15c3
parent 35338 bd326f3e0e14
child 35340 ead01b74be04
debugformat: handle non-boolean value for variant
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: