43 def __init__(self, root, cwd): |
43 def __init__(self, root, cwd): |
44 _match.__init__(self, root, cwd, [], lambda f: False, False) |
44 _match.__init__(self, root, cwd, [], lambda f: False, False) |
45 |
45 |
46 class exact(_match): |
46 class exact(_match): |
47 def __init__(self, root, cwd, files): |
47 def __init__(self, root, cwd, files): |
48 _match.__init__(self, root, cwd, files, lambda f: f in files, False) |
48 _match.__init__(self, root, cwd, files, self.exact, False) |
49 |
49 |
50 class match(_match): |
50 class match(_match): |
51 def __init__(self, root, cwd, patterns, include, exclude, default): |
51 def __init__(self, root, cwd, patterns, include, exclude, default): |
52 f, mf, ap = util.matcher(root, cwd, patterns, include, exclude, |
52 f, mf, ap = util.matcher(root, cwd, patterns, include, exclude, |
53 None, default) |
53 None, default) |