Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 14933:f61a85b2affa
localrepo: decorate _bookmarks/current with filecache
nodebookmarks() can be cached as well, leaving for later
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Mon, 25 Jul 2011 15:08:37 +0300 |
parents | d3ac759a6d66 |
children | 019fe0b0a7af |
comparison
equal
deleted
inserted
replaced
14932:d3ac759a6d66 | 14933:f61a85b2affa |
---|---|
165 return sub.checknested(subpath[len(prefix) + 1:]) | 165 return sub.checknested(subpath[len(prefix) + 1:]) |
166 else: | 166 else: |
167 parts.pop() | 167 parts.pop() |
168 return False | 168 return False |
169 | 169 |
170 @util.propertycache | 170 @filecache('bookmarks') |
171 def _bookmarks(self): | 171 def _bookmarks(self): |
172 return bookmarks.read(self) | 172 return bookmarks.read(self) |
173 | 173 |
174 @util.propertycache | 174 @filecache('bookmarks.current') |
175 def _bookmarkcurrent(self): | 175 def _bookmarkcurrent(self): |
176 return bookmarks.readcurrent(self) | 176 return bookmarks.readcurrent(self) |
177 | 177 |
178 @filecache('00changelog.i', True) | 178 @filecache('00changelog.i', True) |
179 def changelog(self): | 179 def changelog(self): |