diff mercurial/match.py @ 8567:fea40a677d43

match: add some default args
author Matt Mackall <mpm@selenic.com>
date Sun, 24 May 2009 02:56:14 -0500
parents 744d6322b05b
children 4fa1618bf495
line wrap: on
line diff
--- a/mercurial/match.py	Sun May 24 02:56:14 2009 -0500
+++ b/mercurial/match.py	Sun May 24 02:56:14 2009 -0500
@@ -48,7 +48,8 @@
         _match.__init__(self, root, cwd, files, self.exact, False)
 
 class match(_match):
-    def __init__(self, root, cwd, patterns, include, exclude, default):
+    def __init__(self, root, cwd, patterns, include=[], exclude=[],
+                 default='glob'):
         f, mf, ap = util.matcher(root, cwd, patterns, include, exclude,
                                  default)
         _match.__init__(self, root, cwd, f, mf, ap)