Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
15236:4fae5df4b1bb | 15237:7196ed7a1505 |
---|---|
164 return bookmarks.read(self) | 164 return bookmarks.read(self) |
165 | 165 |
166 @filecache('bookmarks.current') | 166 @filecache('bookmarks.current') |
167 def _bookmarkcurrent(self): | 167 def _bookmarkcurrent(self): |
168 return bookmarks.readcurrent(self) | 168 return bookmarks.readcurrent(self) |
169 | |
170 def _writebookmarks(self, marks): | |
171 bookmarks.write(self) | |
169 | 172 |
170 @filecache('00changelog.i', True) | 173 @filecache('00changelog.i', True) |
171 def changelog(self): | 174 def changelog(self): |
172 c = changelog.changelog(self.sopener) | 175 c = changelog.changelog(self.sopener) |
173 if 'HG_PENDING' in os.environ: | 176 if 'HG_PENDING' in os.environ: |