Show More
@@ -708,6 +708,13 b' class dirstate(object):' | |||
|
708 | 708 | |
|
709 | 709 | def add(self, f): |
|
710 | 710 | '''Mark a file added.''' |
|
711 | if not self.pendingparentchange(): | |
|
712 | util.nouideprecwarn( | |
|
713 | b"do not use `add` outside of update/merge context." | |
|
714 | b" Use `set_tracked`", | |
|
715 | b'6.0', | |
|
716 | stacklevel=2, | |
|
717 | ) | |
|
711 | 718 | self._add(f) |
|
712 | 719 | |
|
713 | 720 | def _add(self, filename): |
General Comments 0
You need to be logged in to leave comments.
Login now