diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -1288,7 +1288,7 @@ def _buildregexmatch(kindpats, globsuffi if startidx == 0: matcher = _rematcher(fullregexp) - func = lambda s: matcher(s) is not None + func = lambda s: bool(matcher(s)) else: group = regexps[startidx:] allgroups.append(_joinregexes(group))