# HG changeset patch # User Idan Kamara # Date 1311595717 -10800 # Node ID f61a85b2affa374c0166af8fc7dd2d3576bfc4a6 # Parent d3ac759a6d668bb473392f52748e37b167433c9b localrepo: decorate _bookmarks/current with filecache nodebookmarks() can be cached as well, leaving for later diff -r d3ac759a6d66 -r f61a85b2affa 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)