# HG changeset patch # User Steve Borho # Date 1298046500 21600 # Node ID b366a5e021c6d8d1e3774d7829af2c0c74d2163c # Parent 286a3720d47279efe06d2a441145bde222bf5244 match: fix subtle error in _buildmatch The trailing comma was causing a ValueError. See https://bitbucket.org/tortoisehg/thg/issue/132 diff -r 286a3720d472 -r b366a5e021c6 mercurial/match.py --- a/mercurial/match.py Fri Feb 18 23:41:13 2011 +0100 +++ b/mercurial/match.py Fri Feb 18 10:28:20 2011 -0600 @@ -254,7 +254,7 @@ l = len(pats) if l < 2: raise - pata, a = _buildmatch(pats[:l//2], tail), + pata, a = _buildmatch(pats[:l//2], tail) patb, b = _buildmatch(pats[l//2:], tail) return pat, lambda s: a(s) or b(s) except re.error: