changeset 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 9fe16b1a1786
children 5b7da468531b
files mercurial/match.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):