# HG changeset patch # User Simon Heimberg # Date 2009-05-15 07:43:30 # Node ID 39fd67552297ecb8b9272f6a9201153ec740e843 # Parent 9fe16b1a1786e33f82dc8671ca32dfe6ae6024eb match: use self.exact instead of lambda self.exact uses a set and does not need an extra copy of the files diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -45,7 +45,7 @@ class never(_match): class exact(_match): def __init__(self, root, cwd, files): - _match.__init__(self, root, cwd, files, lambda f: f in files, False) + _match.__init__(self, root, cwd, files, self.exact, False) class match(_match): def __init__(self, root, cwd, patterns, include, exclude, default):