mercurial/localrepo.py
branchstable
changeset 42510 3472a3f9d785
parent 42421 d532292eff22
child 42511 044045dce23a
--- a/mercurial/localrepo.py	Wed Jun 19 17:26:19 2019 +0200
+++ b/mercurial/localrepo.py	Fri Jun 21 03:50:06 2019 +0200
@@ -1224,6 +1224,11 @@
     def _bookmarks(self):
         return bookmarks.bmstore(self)
 
+    def _refreshchangelog(self):
+        """make sure the in memory changelog match the on-disk one"""
+        if ('changelog' in vars(self) and self.currenttransaction() is None):
+            del self.changelog
+
     @property
     def _activebookmark(self):
         return self._bookmarks.active