mercurial/match.py
changeset 42099 bccb322f1496
parent 42098 5753e5949b51
child 42186 fd384911f51b
equal deleted inserted replaced
42098:5753e5949b51 42099:bccb322f1496
  1286                 groupsize = 0
  1286                 groupsize = 0
  1287             groupsize += piecesize + 1
  1287             groupsize += piecesize + 1
  1288 
  1288 
  1289         if startidx == 0:
  1289         if startidx == 0:
  1290             matcher = _rematcher(fullregexp)
  1290             matcher = _rematcher(fullregexp)
  1291             func = lambda s: matcher(s) is not None
  1291             func = lambda s: bool(matcher(s))
  1292         else:
  1292         else:
  1293             group = regexps[startidx:]
  1293             group = regexps[startidx:]
  1294             allgroups.append(_joinregexes(group))
  1294             allgroups.append(_joinregexes(group))
  1295             allmatchers = [_rematcher(g) for g in allgroups]
  1295             allmatchers = [_rematcher(g) for g in allgroups]
  1296             func = lambda s: any(m(s) for m in allmatchers)
  1296             func = lambda s: any(m(s) for m in allmatchers)