changeset 40815 | e115a6452b41 |
parent 40814 | 1e019f45fa88 |
child 40816 | 3984409e144b |
--- a/mercurial/match.py Sun Dec 02 13:44:49 2018 -0800 +++ b/mercurial/match.py Sun Dec 02 13:45:20 2018 -0800 @@ -1212,7 +1212,7 @@ groupsize = _BASE_SIZE for idx, r in enumerate(regexps): piecesize = len(r) - if (piecesize + 4) > MAX_RE_SIZE: + if (piecesize + _BASE_SIZE) > MAX_RE_SIZE: msg = _("matcher pattern is too long (%d bytes)") % piecesize raise error.Abort(msg) elif (groupsize + piecesize) > MAX_RE_SIZE: