Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 39049:b53ec524420b
mq: use stringutil.pprint instead of pycompat.byterepr
Resolves a few output changes on Python 3 in test-mq.t, and gets us
two new passing tests.
Differential Revision: https://phab.mercurial-scm.org/D4248
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 10 Aug 2018 02:06:46 -0400 |
parents | e7aa113b14f7 |
children | 24e493ec2229 |
line wrap: on
line diff
--- a/hgext/mq.py Thu Aug 09 13:27:05 2018 -0400 +++ b/hgext/mq.py Fri Aug 10 02:06:46 2018 -0400 @@ -662,13 +662,13 @@ exactneg = [g for g in patchguards if g.startswith('-') and g[1:] in guards] if exactneg: - return False, pycompat.byterepr(exactneg[0]) + return False, stringutil.pprint(exactneg[0]) pos = [g for g in patchguards if g.startswith('+')] exactpos = [g for g in pos if g[1:] in guards] if pos: if exactpos: - return True, pycompat.byterepr(exactpos[0]) - return False, ' '.join([pycompat.byterepr(p) for p in pos]) + return True, stringutil.pprint(exactpos[0]) + return False, ' '.join([stringutil.pprint(p) for p in pos]) return True, '' def explainpushable(self, idx, all_patches=False):