[PATCH] match: fix bug caused by refactoring in cfc89398f710

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Thu Jun 23 07:49:17 CDT 2011


# HG changeset patch
# User Peter Arrenbrecht <peter.arrenbrecht at gmail.com>
# Date 1308832857 -7200
# Branch stable
# Node ID 78ba0a583b32b7d3866bdf05ee931ee694df4a9a
# Parent  88a53081fb2167536c19db10bc5d5e15d6b589a0
match: fix bug caused by refactoring in cfc89398f710

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -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:


More information about the Mercurial-devel mailing list