mercurial/match.py
changeset 8613 4dea46d4e3f8
parent 8587 8f15d54437b9
child 8678 43598055bae8
--- a/mercurial/match.py	Sun May 24 18:31:01 2009 +0200
+++ b/mercurial/match.py	Sun May 24 16:37:34 2009 -0500
@@ -114,9 +114,9 @@
     """Split a string into an optional pattern kind prefix and the
     actual pattern."""
     if ':' in pat:
-        pat, val = pat.split(':', 1)
-        if pat in ('re', 'glob', 'path', 'relglob', 'relpath', 'relre'):
-            return pat, val
+        kind, val = pat.split(':', 1)
+        if kind in ('re', 'glob', 'path', 'relglob', 'relpath', 'relre'):
+            return kind, val
     return default, pat
 
 def _globre(pat):