Submitter | via Mercurial-devel |
---|---|
Date | May 24, 2017, 12:04 a.m. |
Message ID | <21907ffdb1183eee1659.1495584275@martinvonz.svl.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/20873/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -208,7 +208,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): @@ -246,6 +245,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,