equal
deleted
inserted
replaced
745 return self.normallookup(f) |
745 return self.normallookup(f) |
746 return self.otherparent(f) |
746 return self.otherparent(f) |
747 |
747 |
748 def drop(self, f): |
748 def drop(self, f): |
749 '''Drop a file from the dirstate''' |
749 '''Drop a file from the dirstate''' |
|
750 if not self.pendingparentchange(): |
|
751 util.nouideprecwarn( |
|
752 b"do not use `drop` outside of update/merge context." |
|
753 b" Use `set_untracked`", |
|
754 b'6.0', |
|
755 stacklevel=2, |
|
756 ) |
750 self._drop(f) |
757 self._drop(f) |
751 |
758 |
752 def _drop(self, filename): |
759 def _drop(self, filename): |
753 """internal function to drop a file from the dirstate""" |
760 """internal function to drop a file from the dirstate""" |
754 if self._map.dropfile(filename): |
761 if self._map.dropfile(filename): |