Skip to content
Snippets Groups Projects
Commit 7196ed7a authored by Augie Fackler's avatar Augie Fackler
Browse files

bookmarks: delegate writing to the repo just like reading

This makes it easier for alternate storage backends to not use flat
files for bookmarks storage.
parent 4fae5df4
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@
marks[mark] = new.node()
update = True
if update:
write(repo)
repo._writebookmarks(marks)
def listbookmarks(repo):
# We may try to list bookmarks on a repo type that does not
......
......@@ -167,6 +167,9 @@
def _bookmarkcurrent(self):
return bookmarks.readcurrent(self)
def _writebookmarks(self, marks):
bookmarks.write(self)
@filecache('00changelog.i', True)
def changelog(self):
c = changelog.changelog(self.sopener)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment