# HG changeset patch # User Pierre-Yves David # Date 2024-10-01 10:29:10 # Node ID c6ed4b359c4cd3a224a6c93f9b5e97750ef539ac # Parent d7e9503c07d2a3b4783aefa87974232292ba3be1 branchmap-v3: make sure we write the cache after detecting pure-topo mode We were properly detecting the pure topo-case but in some case the one disk cache file was never updated with that information. diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -1070,6 +1070,7 @@ class BranchCacheV3(_LocalBranchCache): for branch, heads in self._entries.items(): if heads == topo_heads: self._pure_topo_branch = branch + self._state = STATE_DIRTY break