Mercurial > hg
changeset 49963:23b70ce09e55
dirstate: rename `@requires_parents_change` to `@requires_changing_parents`
This match the rename of the context manager.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 26 Jan 2023 15:17:29 +0100 |
parents | 5b0beaf45491 |
children | f979d8af8648 |
files | mercurial/dirstate.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dirstate.py Tue Dec 13 12:10:37 2022 +0100 +++ b/mercurial/dirstate.py Thu Jan 26 15:17:29 2023 +0100 @@ -66,7 +66,7 @@ return obj._join(fname) -def requires_parents_change(func): +def requires_changing_parents(func): def wrap(self, *args, **kwargs): if not self.pendingparentchange(): msg = 'calling `%s` outside of a changing_parents context' @@ -530,7 +530,7 @@ self._dirty = True self._map.set_possibly_dirty(filename) - @requires_parents_change + @requires_changing_parents def update_file_p1( self, filename, @@ -570,7 +570,7 @@ has_meaningful_mtime=False, ) - @requires_parents_change + @requires_changing_parents def update_file( self, filename,