##// END OF EJS Templates
dirstate: deprecate the `drop` method...
marmoute -
r48553:aca197f5 default
parent child Browse files
Show More
@@ -882,7 +882,14 b' class dirstate(object):'
882
882
883 def drop(self, f):
883 def drop(self, f):
884 '''Drop a file from the dirstate'''
884 '''Drop a file from the dirstate'''
885 if not self.pendingparentchange():
885 if self.pendingparentchange():
886 util.nouideprecwarn(
887 b"do not use `drop` inside of update/merge context."
888 b" Use `update_file`",
889 b'6.0',
890 stacklevel=2,
891 )
892 else:
886 util.nouideprecwarn(
893 util.nouideprecwarn(
887 b"do not use `drop` outside of update/merge context."
894 b"do not use `drop` outside of update/merge context."
888 b" Use `set_untracked`",
895 b" Use `set_untracked`",
General Comments 0
You need to be logged in to leave comments. Login now