equal
deleted
inserted
replaced
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(): |