[PATCH 03 of 11 v2] localrepo: add a cache with stat info for files under .hg/
Idan Kamara
idankk86 at gmail.com
Mon Jul 25 07:09:10 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1311595717 -10800
# Node ID dfba7752392c9e7af6792ed337040b70d48d1fac
# Parent 3d8973ae522c5c4196b923a102fd14d7f98936ea
localrepo: add a cache with stat info for files under .hg/
diff -r 3d8973ae522c -r dfba7752392c mercurial/localrepo.py
--- a/mercurial/localrepo.py Sat Jul 09 19:06:59 2011 +0300
+++ b/mercurial/localrepo.py Mon Jul 25 15:08:37 2011 +0300
@@ -111,6 +111,12 @@
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 -r 3d8973ae522c -r dfba7752392c mercurial/statichttprepo.py
--- a/mercurial/statichttprepo.py Sat Jul 09 19:06:59 2011 +0300
+++ b/mercurial/statichttprepo.py Mon Jul 25 15:08:37 2011 +0300
@@ -125,6 +125,7 @@
self.encodepats = None
self.decodepats = None
self.capabilities.difference_update(["pushkey"])
+ self._filecache = {}
def url(self):
return self._url
More information about the Mercurial-devel
mailing list