Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/branchmap.py @ 52039:c6ed4b359c4c
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 01 Oct 2024 12:29:10 +0200 |
parents | 42a116f1cdc1 |
children | dc36535a5edc |
comparison
equal
deleted
inserted
replaced
52038:d7e9503c07d2 | 52039:c6ed4b359c4c |
---|---|
1068 if any(n in self._closednodes for n in topo_heads): | 1068 if any(n in self._closednodes for n in topo_heads): |
1069 return | 1069 return |
1070 for branch, heads in self._entries.items(): | 1070 for branch, heads in self._entries.items(): |
1071 if heads == topo_heads: | 1071 if heads == topo_heads: |
1072 self._pure_topo_branch = branch | 1072 self._pure_topo_branch = branch |
1073 self._state = STATE_DIRTY | |
1073 break | 1074 break |
1074 | 1075 |
1075 | 1076 |
1076 class remotebranchcache(_BaseBranchCache): | 1077 class remotebranchcache(_BaseBranchCache): |
1077 """Branchmap info for a remote connection, should not write locally""" | 1078 """Branchmap info for a remote connection, should not write locally""" |