dirstate: rename `@requires_parents_change` to `@requires_changing_parents`
This match the rename of the context manager.
--- 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,