diff -r 2c5835b4246b -r d30a19d10441 mercurial/match.py --- a/mercurial/match.py Fri Oct 05 11:07:34 2018 -0700 +++ b/mercurial/match.py Sun Oct 14 11:16:22 2018 -0400 @@ -1173,7 +1173,7 @@ 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)