Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 50023:e1cff85484e2
dirstate: introduce a `is_changing_any` property
This will embrace other cases than changing parents.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 26 Jan 2023 15:50:45 +0100 |
parents | e333cc169c45 |
children | cf8b9c80d67c |
line wrap: on
line diff
--- a/mercurial/localrepo.py Mon Jan 30 19:21:34 2023 +0100 +++ b/mercurial/localrepo.py Thu Jan 26 15:50:45 2023 +0100 @@ -3070,7 +3070,7 @@ self.ui.develwarn(b'"wlock" acquired after "lock"') def unlock(): - if self.dirstate.is_changing_parents: + if self.dirstate.is_changing_any: msg = b"wlock release in the middle of a changing parents" self.ui.develwarn(msg) self.dirstate.invalidate()