Mercurial > hg
changeset 37752:63b7415e37a5
hook: also use pprint on lists for stable output on py2/3
Differential Revision: https://phab.mercurial-scm.org/D3361
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 14 Apr 2018 00:08:59 -0400 |
parents | 483de34f23b1 |
children | f450a3be62ec |
files | mercurial/hook.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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