Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 42510:3472a3f9d785 stable
localrepo: introduce a `_refreshchangelog` method
See next changeset for usage and documentation for details.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 21 Jun 2019 03:50:06 +0200 |
parents | d532292eff22 |
children | 044045dce23a |
comparison
equal
deleted
inserted
replaced
42509:95c2f951e502 | 42510:3472a3f9d785 |
---|---|
1221 | 1221 |
1222 @mixedrepostorecache(('bookmarks', 'plain'), ('bookmarks.current', 'plain'), | 1222 @mixedrepostorecache(('bookmarks', 'plain'), ('bookmarks.current', 'plain'), |
1223 ('00changelog.i', '')) | 1223 ('00changelog.i', '')) |
1224 def _bookmarks(self): | 1224 def _bookmarks(self): |
1225 return bookmarks.bmstore(self) | 1225 return bookmarks.bmstore(self) |
1226 | |
1227 def _refreshchangelog(self): | |
1228 """make sure the in memory changelog match the on-disk one""" | |
1229 if ('changelog' in vars(self) and self.currenttransaction() is None): | |
1230 del self.changelog | |
1226 | 1231 |
1227 @property | 1232 @property |
1228 def _activebookmark(self): | 1233 def _activebookmark(self): |
1229 return self._bookmarks.active | 1234 return self._bookmarks.active |
1230 | 1235 |