Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 37986: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 | a8a7ccec1783 |
children | 2f86f259aefa |
line wrap: on
line diff
--- a/mercurial/scmutil.py Thu May 10 21:00:58 2018 +0900 +++ b/mercurial/scmutil.py Thu May 10 21:08:32 2018 +0900 @@ -106,8 +106,7 @@ def __repr__(self, *args, **kwargs): return ((r'<status modified=%s, added=%s, removed=%s, deleted=%s, ' r'unknown=%s, ignored=%s, clean=%s>') % - tuple(pycompat.sysstr(stringutil.pprint( - v, bprefix=False)) for v in self)) + tuple(pycompat.sysstr(stringutil.pprint(v)) for v in self)) def itersubrepos(ctx1, ctx2): """find subrepos in ctx1 or ctx2"""