dirstate: rename `@requires_parents_change` to `@requires_changing_parents`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 26 Jan 2023 15:17:29 +0100
changeset 49963 23b70ce09e55
parent 49962 5b0beaf45491
child 49964 f979d8af8648
dirstate: rename `@requires_parents_change` to `@requires_changing_parents` This match the rename of the context manager.
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,