mercurial/localrepo.py
changeset 17922 7f5dab94e48c
parent 17857 8ef4b022d562
child 17993 1a6f8820eb71
equal deleted inserted replaced
17921:4ac9cf3d810c 17922:7f5dab94e48c
   263     def peer(self):
   263     def peer(self):
   264         return localpeer(self) # not cached to avoid reference cycle
   264         return localpeer(self) # not cached to avoid reference cycle
   265 
   265 
   266     @filecache('bookmarks')
   266     @filecache('bookmarks')
   267     def _bookmarks(self):
   267     def _bookmarks(self):
   268         return bookmarks.read(self)
   268         return bookmarks.bmstore(self)
   269 
   269 
   270     @filecache('bookmarks.current')
   270     @filecache('bookmarks.current')
   271     def _bookmarkcurrent(self):
   271     def _bookmarkcurrent(self):
   272         return bookmarks.readcurrent(self)
   272         return bookmarks.readcurrent(self)
   273 
       
   274     def _writebookmarks(self, marks):
       
   275         bookmarks.write(self)
       
   276 
   273 
   277     def bookmarkheads(self, bookmark):
   274     def bookmarkheads(self, bookmark):
   278         name = bookmark.split('@', 1)[0]
   275         name = bookmark.split('@', 1)[0]
   279         heads = []
   276         heads = []
   280         for mark, n in self._bookmarks.iteritems():
   277         for mark, n in self._bookmarks.iteritems():