D3361: hook: also use pprint on lists for stable output on py2/3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat Apr 14 04:32:57 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list