##// END OF EJS Templates
dirstate: deprecate the `add` method outside of update/merge context...
marmoute -
r48461:b2082426 default
parent child Browse files
Show More
@@ -708,6 +708,13 b' class dirstate(object):'
708
708
709 def add(self, f):
709 def add(self, f):
710 '''Mark a file added.'''
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 self._add(f)
718 self._add(f)
712
719
713 def _add(self, filename):
720 def _add(self, filename):
General Comments 0
You need to be logged in to leave comments. Login now