match: fix _patsplit breakage with drive letters
authorMatt Mackall <mpm@selenic.com>
Sun, 24 May 2009 16:37:34 -0500
changeset 8613 4dea46d4e3f8
parent 8612 e10e984bea46
child 8614 573734e7e6d0
match: fix _patsplit breakage with drive letters
mercurial/match.py
--- 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):