Mercurial > public > mercurial-scm > hg
diff mercurial/match.py @ 8522:39fd67552297
match: use self.exact instead of lambda
self.exact uses a set and does not need an extra copy of the files
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Fri, 15 May 2009 09:43:30 +0200 |
parents | 5d4d88a4f5e6 |
children | 744d6322b05b |
line wrap: on
line diff
--- a/mercurial/match.py Thu May 14 19:47:52 2009 +0200 +++ b/mercurial/match.py Fri May 15 09:43:30 2009 +0200 @@ -45,7 +45,7 @@ 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):