[PATCH 11 of 11 v2] localrepo: decorate _tagscache() with filecache
Idan Kamara
idankk86 at gmail.com
Mon Jul 25 07:09:18 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1311595737 -10800
# Node ID 0c3a2638cbfc815b636c3de89f9db9595838d6c6
# Parent 1de4ba3f90b83bfe075a26fd3435a476ffc7cb33
localrepo: decorate _tagscache() with filecache
diff -r 1de4ba3f90b8 -r 0c3a2638cbfc mercurial/localrepo.py
--- a/mercurial/localrepo.py Mon Jul 25 15:08:57 2011 +0300
+++ b/mercurial/localrepo.py Mon Jul 25 15:08:57 2011 +0300
@@ -336,7 +336,7 @@
self.tags() # instantiate the cache
self._tag(names, node, message, local, user, date)
- @propertycache
+ @filecache('00changelog.i', True)
def _tagscache(self):
'''Returns a tagscache object that contains various tags related caches.'''
@@ -805,11 +805,6 @@
release(lock, wlock)
def invalidatecaches(self):
- try:
- delattr(self, '_tagscache')
- except AttributeError:
- pass
-
self._branchcache = None # in UTF-8
self._branchcachetip = None
More information about the Mercurial-devel
mailing list