Mercurial > hg
changeset 49959:376395868b7b
dirstate: warn about non-explicitly rolledback parent-change
Now that the invalidation is dealt with by the context manager itself, we
should no longer need this in the unlocking code. We start with issuing a
warning if this is the case before actually dropping this code later.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 13 Dec 2022 10:00:04 +0100 |
parents | 96e526fe5fb0 |
children | c166b212bdee |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Dec 13 11:39:44 2022 +0100 +++ b/mercurial/localrepo.py Tue Dec 13 10:00:04 2022 +0100 @@ -3073,6 +3073,8 @@ def unlock(): if self.dirstate.pendingparentchange(): + msg = b"wlock release in the middle of a changing parents" + self.ui.develwarn(msg) self.dirstate.invalidate() else: self.dirstate.write(None)