D12126: branchmap: Add a test about writing branchmap and aborted transaction

2022-02-01 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY It turn out that we update the branchmap on disk whenever we recompute it… including in a middle of a transaction. This means writing the new branchmap too

D12127: transaction: add a way to know a transaction has been finalized

2022-02-01 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This will be useful to fix the timing of the branchmap on disk caching. REPOSITORY rHG Mercurial BRANCH stable REVISION DETAIL

D12128: branchmap: stop writing cache for uncommitted data

2022-02-01 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY If we are about to write the branch while a transaction is active. we delay that write. After the transaction is closed, we flush all the write we delayed

D12129: dirstate-v2: rename the configuration to enable the format

2022-02-01 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. marmoute added a comment. This patch is intended for stable. REVISION SUMMARY The rename of the old experimental name was overlooked before the 6.0 release. We rename