changeset 32576:cf7c88986e9f

match: define exactmatcher.matchfn statically This should eliminate the reference cycle, self.matchfn -> self.exact -> self.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 28 May 2017 23:54:31 +0900
parents 37ea47a50875
children e9f456183402
files mercurial/match.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):