mercurial/dirstate.py
changeset 50022 c166b212bdee
parent 50020 96e526fe5fb0
child 50023 7a8bfc05b691
--- a/mercurial/dirstate.py	Tue Dec 13 10:00:04 2022 +0100
+++ b/mercurial/dirstate.py	Wed Jan 25 18:46:20 2023 +0100
@@ -151,7 +151,7 @@
         self._pl
 
     @contextlib.contextmanager
-    def parentchange(self):
+    def parentchange(self, repo):
         """Context manager for handling dirstate parents.
 
         If an exception occurs in the scope of the context manager,
@@ -523,7 +523,7 @@
         rewriting operation.
 
         It should not be called during a merge (p2 != nullid) and only within
-        a `with dirstate.parentchange():` context.
+        a `with dirstate.parentchange(repo):` context.
         """
         if self.in_merge:
             msg = b'update_file_reference should not be called when merging'