mercurial/match.py
changeset 8522 39fd67552297
parent 8231 5d4d88a4f5e6
child 8566 744d6322b05b
equal deleted inserted replaced
8521:9fe16b1a1786 8522:39fd67552297
    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)