Mercurial > hg
comparison mercurial/hook.py @ 37942:32bc3815efae
stringutil: flip the default of pprint() to bprefix=False
If we use pprint() as a drop-in replacement for repr(), bprefix=False is more
appropriate. Let's make it the default to remove bprefix=False noise.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 10 May 2018 21:08:32 +0900 |
parents | 63b7415e37a5 |
children | 242eb5132203 |
comparison
equal
deleted
inserted
replaced
37941:af83a0ed0afb | 37942:32bc3815efae |
---|---|
136 | 136 |
137 for k, v in args.iteritems(): | 137 for k, v in args.iteritems(): |
138 if callable(v): | 138 if callable(v): |
139 v = v() | 139 v = v() |
140 if isinstance(v, (dict, list)): | 140 if isinstance(v, (dict, list)): |
141 v = stringutil.pprint(v, bprefix=False) | 141 v = stringutil.pprint(v) |
142 env['HG_' + k.upper()] = v | 142 env['HG_' + k.upper()] = v |
143 | 143 |
144 if repo: | 144 if repo: |
145 cwd = repo.root | 145 cwd = repo.root |
146 else: | 146 else: |