D3361: hook: also use pprint on lists for stable output on py2/3

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Apr 16 23:22:31 UTC 2018


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


More information about the Mercurial-devel mailing list