match: fix up a repr to not crash on Python 3
authorAugie Fackler <augie@google.com>
Sun, 14 Oct 2018 11:16:22 -0400
changeset 40345 d30a19d10441
parent 40344 2c5835b4246b
child 40346 943248e47864
match: fix up a repr to not crash on Python 3 Differential Revision: https://phab.mercurial-scm.org/D5120
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)