comparison mercurial/match.py @ 40345:d30a19d10441

match: fix up a repr to not crash on Python 3 Differential Revision: https://phab.mercurial-scm.org/D5120
author Augie Fackler <augie@google.com>
date Sun, 14 Oct 2018 11:16:22 -0400
parents 19ed212de2d1
children e6c9ef5e11a0 481249481392
comparison
equal deleted inserted replaced
40344:2c5835b4246b 40345:d30a19d10441
1171 if i >= 0: 1171 if i >= 0:
1172 dir = f[:i] 1172 dir = f[:i]
1173 else: 1173 else:
1174 dir = '.' 1174 dir = '.'
1175 return dir in dirs 1175 return dir in dirs
1176 regex = b'rootfilesin: %s' % sorted(dirs) 1176 regex = b'rootfilesin: %s' % stringutil.pprint(list(sorted(dirs)))
1177 matchfuncs.append(mf) 1177 matchfuncs.append(mf)
1178 else: 1178 else:
1179 regex, mf = _buildregexmatch(kindpats, globsuffix) 1179 regex, mf = _buildregexmatch(kindpats, globsuffix)
1180 matchfuncs.append(mf) 1180 matchfuncs.append(mf)
1181 1181