# HG changeset patch # User Yuya Nishihara # Date 2017-05-28 14:54:31 # Node ID cf7c88986e9f64926bdf79b04e2777d730cf8cb0 # Parent 37ea47a50875231bf7378f4aa29d6d5386c23128 match: define exactmatcher.matchfn statically This should eliminate the reference cycle, self.matchfn -> self.exact -> self. diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -415,7 +415,8 @@ class exactmatcher(basematcher): self._files = files else: self._files = list(files) - self.matchfn = self.exact + + matchfn = basematcher.exact @propertycache def _dirs(self):