D5120: match: fix up a repr to not crash on Python 3

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Oct 18 08:05:01 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd30a19d10441: match: fix up a repr to not crash on Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5120?vs=12174&id=12240

REVISION DETAIL
  https://phab.mercurial-scm.org/D5120

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -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)



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list