mercurial/dirstate.py
changeset 47753 aca197f5ef7d
parent 47744 372ff4638cb4
child 47757 7375add1ca92
--- a/mercurial/dirstate.py	Mon Jul 19 17:33:45 2021 +0200
+++ b/mercurial/dirstate.py	Mon Jul 19 09:05:25 2021 +0200
@@ -882,7 +882,14 @@
 
     def drop(self, f):
         '''Drop a file from the dirstate'''
-        if not self.pendingparentchange():
+        if self.pendingparentchange():
+            util.nouideprecwarn(
+                b"do not use `drop` inside of update/merge context."
+                b" Use `update_file`",
+                b'6.0',
+                stacklevel=2,
+            )
+        else:
             util.nouideprecwarn(
                 b"do not use `drop` outside of update/merge context."
                 b" Use `set_untracked`",