# HG changeset patch # User Idan Kamara # Date 2011-07-25 12:08:37 # Node ID 4bf9493e7b07b37784ba09e85fdc468e65ba6d00 # Parent dca59d5be12d58f1f16cef998024e59c544376fb localrepo: add a cache with stat info for files under .hg/ diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -111,6 +111,12 @@ class localrepository(repo.repository): self._datafilters = {} self._transref = self._lockref = self._wlockref = None + # A cache for various files under .hg/ that tracks file changes, + # (used by the filecache decorator) + # + # Maps a property name to its util.filecacheentry + self._filecache = {} + def _applyrequirements(self, requirements): self.requirements = requirements openerreqs = set(('revlogv1', 'generaldelta')) diff --git a/mercurial/statichttprepo.py b/mercurial/statichttprepo.py --- a/mercurial/statichttprepo.py +++ b/mercurial/statichttprepo.py @@ -125,6 +125,7 @@ class statichttprepository(localrepo.loc self.encodepats = None self.decodepats = None self.capabilities.difference_update(["pushkey"]) + self._filecache = {} def url(self): return self._url