changeset 8613:4dea46d4e3f8

match: fix _patsplit breakage with drive letters
author Matt Mackall <mpm@selenic.com>
date Sun, 24 May 2009 16:37:34 -0500
parents e10e984bea46
children 573734e7e6d0
files mercurial/match.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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):