hook: also use pprint on lists for stable output on py2/3
authorAugie Fackler <augie@google.com>
Sat, 14 Apr 2018 00:08:59 -0400
changeset 37752 63b7415e37a5
parent 37751 483de34f23b1
child 37753 f450a3be62ec
hook: also use pprint on lists for stable output on py2/3 Differential Revision: https://phab.mercurial-scm.org/D3361
mercurial/hook.py
--- a/mercurial/hook.py	Fri Apr 13 23:56:11 2018 -0400
+++ b/mercurial/hook.py	Sat Apr 14 00:08:59 2018 -0400
@@ -137,7 +137,7 @@
     for k, v in args.iteritems():
         if callable(v):
             v = v()
-        if isinstance(v, dict):
+        if isinstance(v, (dict, list)):
             v = stringutil.pprint(v, bprefix=False)
         env['HG_' + k.upper()] = v