457 # (possibly subclass of the repo) |
457 # (possibly subclass of the repo) |
458 class proxycls(repoview.repoview, self.unfiltered().__class__): |
458 class proxycls(repoview.repoview, self.unfiltered().__class__): |
459 pass |
459 pass |
460 return proxycls(self, name) |
460 return proxycls(self, name) |
461 |
461 |
462 @repofilecache('bookmarks') |
462 @repofilecache('bookmarks', 'bookmarks.current') |
463 def _bookmarks(self): |
463 def _bookmarks(self): |
464 return bookmarks.bmstore(self) |
464 return bookmarks.bmstore(self) |
465 |
465 |
466 @repofilecache('bookmarks.current') |
466 @property |
467 def _activebookmark(self): |
467 def _activebookmark(self): |
468 return bookmarks.readactive(self) |
468 return self._bookmarks.active |
469 |
469 |
470 def bookmarkheads(self, bookmark): |
470 def bookmarkheads(self, bookmark): |
471 name = bookmark.split('@', 1)[0] |
471 name = bookmark.split('@', 1)[0] |
472 heads = [] |
472 heads = [] |
473 for mark, n in self._bookmarks.iteritems(): |
473 for mark, n in self._bookmarks.iteritems(): |