This revision was automatically updated to reflect the committed changes.
Closed by commit rHG63b7415e37a5: hook: also use pprint on lists for stable 
output on py2/3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3361?vs=8238&id=8356

REVISION DETAIL
  https://phab.mercurial-scm.org/D3361

AFFECTED FILES
  mercurial/hook.py

CHANGE DETAILS

diff --git a/mercurial/hook.py b/mercurial/hook.py
--- a/mercurial/hook.py
+++ b/mercurial/hook.py
@@ -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
 



To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to