mercurial/dirstate.py
changeset 47911 3d2c17c5d7f2
parent 47910 50bed873a765
child 47912 91afee6f959e
--- a/mercurial/dirstate.py	Tue Aug 24 21:08:37 2021 +0200
+++ b/mercurial/dirstate.py	Tue Aug 24 21:09:01 2021 +0200
@@ -744,24 +744,6 @@
         self._addpath(f, possibly_dirty=True)
         self._map.copymap.pop(f, None)
 
-    def otherparent(self, f):
-        '''Mark as coming from the other parent, always dirty.'''
-        if self.pendingparentchange():
-            util.nouideprecwarn(
-                b"do not use `otherparent` inside of update/merge context."
-                b" Use `update_file` or `update_file_p1`",
-                b'6.0',
-                stacklevel=2,
-            )
-        else:
-            util.nouideprecwarn(
-                b"do not use `otherparent` outside of update/merge context."
-                b"It should have been set by the update/merge code",
-                b'6.0',
-                stacklevel=2,
-            )
-        self._otherparent(f)
-
     def _otherparent(self, f):
         if not self.in_merge:
             msg = _(b"setting %r to other parent only allowed in merges") % f