Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 15237:7196ed7a1505
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.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 12 Oct 2011 11:09:57 -0500 |
parents | 0292f88d3b86 |
children | e174353e8cda |
line wrap: on
line diff
--- a/mercurial/localrepo.py Wed Oct 12 22:01:14 2011 +0200 +++ b/mercurial/localrepo.py Wed Oct 12 11:09:57 2011 -0500 @@ -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)