# HG changeset patch # User Augie Fackler # Date 2018-10-14 15:16:22 # Node ID d30a19d1044172d47632d7abb8a8229c5b9c35cf # Parent 2c5835b4246be6ea42e4b4c7b42dc23e379e2c23 match: fix up a repr to not crash on Python 3 Differential Revision: https://phab.mercurial-scm.org/D5120 diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -1173,7 +1173,7 @@ def _buildmatch(kindpats, globsuffix, li else: dir = '.' return dir in dirs - regex = b'rootfilesin: %s' % sorted(dirs) + regex = b'rootfilesin: %s' % stringutil.pprint(list(sorted(dirs))) matchfuncs.append(mf) else: regex, mf = _buildregexmatch(kindpats, globsuffix)