branchmap-v3: make sure we write the cache after detecting pure-topo mode
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Oct 2024 12:29:10 +0200
changeset 52011 c6ed4b359c4c
parent 52008 d7e9503c07d2
child 52013 5713adc51f2a
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.
mercurial/branchmap.py
--- a/mercurial/branchmap.py	Fri Oct 11 00:56:20 2024 -0400
+++ b/mercurial/branchmap.py	Tue Oct 01 12:29:10 2024 +0200
@@ -1070,6 +1070,7 @@
         for branch, heads in self._entries.items():
             if heads == topo_heads:
                 self._pure_topo_branch = branch
+                self._state = STATE_DIRTY
                 break