# HG changeset patch # User Pierre-Yves David # Date 1674742779 -3600 # Node ID f979d8af86489c39939752bb9211b43efa67882c # Parent 23b70ce09e5599119fb322edf26d0f4610bfbb60 dirstate: rename `@requires_no_parents_change` too This match the rename of the context manager. diff -r 23b70ce09e55 -r f979d8af8648 mercurial/dirstate.py --- a/mercurial/dirstate.py Thu Jan 26 15:17:29 2023 +0100 +++ b/mercurial/dirstate.py Thu Jan 26 15:19:39 2023 +0100 @@ -80,7 +80,7 @@ return wrap -def requires_no_parents_change(func): +def requires_not_changing_parents(func): def wrap(self, *args, **kwargs): if self.pendingparentchange(): msg = 'calling `%s` inside of a changing_parents context' @@ -478,7 +478,7 @@ def copies(self): return self._map.copymap - @requires_no_parents_change + @requires_not_changing_parents def set_tracked(self, filename, reset_copy=False): """a "public" method for generic code to mark a file as tracked @@ -500,7 +500,7 @@ self._dirty_tracked_set = True return pre_tracked - @requires_no_parents_change + @requires_not_changing_parents def set_untracked(self, filename): """a "public" method for generic code to mark a file as untracked @@ -515,7 +515,7 @@ self._dirty_tracked_set = True return ret - @requires_no_parents_change + @requires_not_changing_parents def set_clean(self, filename, parentfiledata): """record that the current state of the file on disk is known to be clean""" self._dirty = True @@ -524,7 +524,7 @@ (mode, size, mtime) = parentfiledata self._map.set_clean(filename, mode, size, mtime) - @requires_no_parents_change + @requires_not_changing_parents def set_possibly_dirty(self, filename): """record that the current state of the file on disk is unknown""" self._dirty = True