diff mercurial/hook.py @ 37942:32bc3815efae

stringutil: flip the default of pprint() to bprefix=False If we use pprint() as a drop-in replacement for repr(), bprefix=False is more appropriate. Let's make it the default to remove bprefix=False noise.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 10 May 2018 21:08:32 +0900
parents 63b7415e37a5
children 242eb5132203
line wrap: on
line diff
--- a/mercurial/hook.py	Thu May 10 21:00:58 2018 +0900
+++ b/mercurial/hook.py	Thu May 10 21:08:32 2018 +0900
@@ -138,7 +138,7 @@
         if callable(v):
             v = v()
         if isinstance(v, (dict, list)):
-            v = stringutil.pprint(v, bprefix=False)
+            v = stringutil.pprint(v)
         env['HG_' + k.upper()] = v
 
     if repo: