mercurial/match.py
changeset 32459 9f781f43f2ce
parent 32458 a04bc55201c3
child 32460 f9445b528687
--- a/mercurial/match.py	Wed May 17 23:45:13 2017 -0700
+++ b/mercurial/match.py	Fri May 19 10:17:08 2017 -0700
@@ -209,7 +209,6 @@
         self._cwd = cwd
         if badfn is not None:
             self.bad = badfn
-        self._files = [] # exact files and roots of patterns
         self.matchfn = lambda f: False
 
     def __call__(self, fn):
@@ -247,6 +246,10 @@
         Otherwise it is relative to the root of the repo.'''
         return self.rel(f)
 
+    @propertycache
+    def _files(self):
+        return []
+
     def files(self):
         '''Explicitly listed files or patterns or roots:
         if no patterns or .always(): empty list,