mercurial/util.py
changeset 6595 99a92acafdb9
parent 6575 e08e0367ba15
child 6676 33045179d079
--- a/mercurial/util.py	Mon May 12 11:37:08 2008 -0500
+++ b/mercurial/util.py	Mon May 12 11:37:08 2008 -0500
@@ -277,12 +277,12 @@
         ret.append(p)
     return ret
 
-def patkind(name, dflt_pat='glob'):
+def patkind(name, default):
     """Split a string into an optional pattern kind prefix and the
     actual pattern."""
     for prefix in 're', 'glob', 'path', 'relglob', 'relpath', 'relre':
         if name.startswith(prefix + ':'): return name.split(':', 1)
-    return dflt_pat, name
+    return default, name
 
 def globre(pat, head='^', tail='$'):
     "convert a glob pattern into a regexp"