Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 51549:94f821490645
branchcache: change the _delayed flag to an explicit `_dirty` flag
This is more consistent with the logic we use for other object and it open the way to a clearer management of the cache state.
Now, cache are created clean, cache update mark them dirty, writing them on
disk mark them clean again.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 08 Mar 2024 16:47:32 +0100 |
parents | c0d51565b501 |
children | 79a7616a82b8 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Mar 08 15:50:15 2024 +0100 +++ b/mercurial/localrepo.py Fri Mar 08 16:47:32 2024 +0100 @@ -2974,7 +2974,7 @@ self._branchcaches.update_disk(filtered) # flush all possibly delayed write. - self._branchcaches.write_delayed(self) + self._branchcaches.write_dirty(self) def invalidatecaches(self): if '_tagscache' in vars(self):