# HG changeset patch # User Pierre-Yves David # Date 1674742649 -3600 # Node ID 23b70ce09e5599119fb322edf26d0f4610bfbb60 # Parent 5b0beaf45491318488ceb6137310b3178017f0a2 dirstate: rename `@requires_parents_change` to `@requires_changing_parents` This match the rename of the context manager. diff -r 5b0beaf45491 -r 23b70ce09e55 mercurial/dirstate.py --- 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,