localrepo: decorate _bookmarks/current with filecache
authorIdan Kamara <idankk86@gmail.com>
Mon, 25 Jul 2011 15:08:37 +0300
changeset 14933 f61a85b2affa
parent 14932 d3ac759a6d66
child 14934 019fe0b0a7af
localrepo: decorate _bookmarks/current with filecache nodebookmarks() can be cached as well, leaving for later
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Jul 25 15:08:37 2011 +0300
+++ b/mercurial/localrepo.py	Mon Jul 25 15:08:37 2011 +0300
@@ -167,11 +167,11 @@
                 parts.pop()
         return False
 
-    @util.propertycache
+    @filecache('bookmarks')
     def _bookmarks(self):
         return bookmarks.read(self)
 
-    @util.propertycache
+    @filecache('bookmarks.current')
     def _bookmarkcurrent(self):
         return bookmarks.readcurrent(self)