##// END OF EJS Templates
match: fix _patsplit breakage with drive letters
Matt Mackall -
r8613:4dea46d4 default
parent child Browse files
Show More
@@ -114,9 +114,9 b' def _patsplit(pat, default):'
114 """Split a string into an optional pattern kind prefix and the
114 """Split a string into an optional pattern kind prefix and the
115 actual pattern."""
115 actual pattern."""
116 if ':' in pat:
116 if ':' in pat:
117 pat, val = pat.split(':', 1)
117 kind, val = pat.split(':', 1)
118 if pat in ('re', 'glob', 'path', 'relglob', 'relpath', 'relre'):
118 if kind in ('re', 'glob', 'path', 'relglob', 'relpath', 'relre'):
119 return pat, val
119 return kind, val
120 return default, pat
120 return default, pat
121
121
122 def _globre(pat):
122 def _globre(pat):
General Comments 0
You need to be logged in to leave comments. Login now