match: fix bug caused by refactoring in cfc89398f710 stable
authorPeter Arrenbrecht <peter.arrenbrecht@gmail.com>
Thu, 23 Jun 2011 14:40:57 +0200
branchstable
changeset 14722 b6dc362b051c
parent 14721 4fcde634f5e0
child 14723 b9faf94ee196
match: fix bug caused by refactoring in cfc89398f710
mercurial/match.py
--- a/mercurial/match.py	Wed Jun 22 15:34:33 2011 +0200
+++ b/mercurial/match.py	Thu Jun 23 14:40:57 2011 +0200
@@ -282,8 +282,8 @@
         l = len(pats)
         if l < 2:
             raise
-        pata, a = _buildmatch(pats[:l//2], tail)
-        patb, b = _buildmatch(pats[l//2:], tail)
+        pata, a = _buildregexmatch(pats[:l//2], tail)
+        patb, b = _buildregexmatch(pats[l//2:], tail)
         return pat, lambda s: a(s) or b(s)
     except re.error:
         for k, p in pats: