comparison tests/test-rebase-newancestor.t @ 49958:96e526fe5fb0

dirstate: invalidate changes when parent-change fails When an error occurs during changing parents, we should invalidate all dirstate modifications and reload the dirstate. This is currently done by a `unlock` callback on the `wlock`. To fix this anomaly, we start dealing with the error directly in the context manager and its potential nesting. The "hard" part is to make sure that, when the parent-change context are nested, we and higher level nesting do not continue to use the invalidated dirstate. We introduce dedicated code to enforce that.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 13 Dec 2022 11:39:44 +0100
parents 9989a276712f
children 2cf264e9aa75
comparison
equal deleted inserted replaced
49957:ff4df0954742 49958:96e526fe5fb0