branchcache: skip entries that are topological heads in the on disk file
In the majority of cases, topological heads are also branch heads. We have efficient way to get the topological heads and efficient way to retrieve their branch information. So there is little value in putting them in the branch cache file explicitly. On the contrary, writing them explicitly tend to create very large cache file that are inefficient to read and update. So the branch cache v3 format is no longer including them. This changeset focus on the format aspect and have no focus on the performance aspect. We will cover that later.
Showing
- mercurial/branchmap.py 61 additions, 2 deletionsmercurial/branchmap.py
- mercurial/configitems.toml 3 additions, 0 deletionsmercurial/configitems.toml
- tests/test-branches-obsolete.t 0 additions, 20 deletionstests/test-branches-obsolete.t
- tests/test-branches.t 9 additions, 4 deletionstests/test-branches.t
Loading
Please register or sign in to comment