branchmap: update rev-branch-cache incrementally
Historically, the revision to branch mapping cache was updated on demand and shared via bundle2 to avoid the cost of rebuilding on first use. Use the new `register_changeset` callback and update rbc directly on every change. Make the transfer of the bundle part redundant, but keep it for the moment to avoid the test churn. Over all, "hg unbundle" for large bundles is less than 1.8% slower for different larger repositories and that seems to a reasonable trade off. Differential Revision: https://phab.mercurial-scm.org/D9781
parent
0903d6b9b1df
No related branches found
No related tags found
Showing
- mercurial/branchmap.py 4 additions, 2 deletionsmercurial/branchmap.py
- mercurial/bundle2.py 4 additions, 29 deletionsmercurial/bundle2.py
- mercurial/localrepo.py 1 addition, 1 deletionmercurial/localrepo.py
- relnotes/next 3 additions, 0 deletionsrelnotes/next
- tests/test-acl.t 7 additions, 0 deletionstests/test-acl.t
- tests/test-inherit-mode.t 2 additions, 0 deletionstests/test-inherit-mode.t
- tests/test-rebase-conflicts.t 1 addition, 1 deletiontests/test-rebase-conflicts.t
Loading
Please register or sign in to comment