[PATCH 2 of 2] match: define exactmatcher.matchfn statically
Yuya Nishihara
yuya at tcha.org
Sun May 28 11:26:09 EDT 2017
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1495983271 -32400
# Sun May 28 23:54:31 2017 +0900
# Node ID 543c18862df7b1f17802d95da087388ba99a64d2
# Parent cad7aca56f0bf3d5865cc07ee9616568ada78c36
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):
More information about the Mercurial-devel
mailing list