match: define exactmatcher.matchfn statically
authorYuya Nishihara <yuya@tcha.org>
Sun, 28 May 2017 23:54:31 +0900
changeset 32543 cf7c88986e9f
parent 32542 37ea47a50875
child 32544 e9f456183402
match: define exactmatcher.matchfn statically This should eliminate the reference cycle, self.matchfn -> self.exact -> self.
mercurial/match.py
--- a/mercurial/match.py	Sun May 28 23:51:30 2017 +0900
+++ b/mercurial/match.py	Sun May 28 23:54:31 2017 +0900
@@ -415,7 +415,8 @@
             self._files = files
         else:
             self._files = list(files)
-        self.matchfn = self.exact
+
+    matchfn = basematcher.exact
 
     @propertycache
     def _dirs(self):