Mercurial > hg
diff mercurial/dirstate.py @ 47861:1c797757f5bb
dirstate: directly call the dirstatemap in `set_untracked`
This function is only called in two places: the deprecated "remove" method and
in the new `set_untracked` method.
So we simply inline the appropriate content in `set_untracked`, paving the way
to dropping the deprecated code and its associated function.
Differential Revision: https://phab.mercurial-scm.org/D11313
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 20 Aug 2021 11:23:41 +0200 |
parents | 97acbced3a99 |
children | 6614ab9f061d |
line wrap: on
line diff
--- a/mercurial/dirstate.py Thu Aug 19 17:42:55 2021 +0200 +++ b/mercurial/dirstate.py Fri Aug 20 11:23:41 2021 +0200 @@ -500,7 +500,9 @@ self._drop(filename) return True else: - self._remove(filename) + self._dirty = True + self._updatedfiles.add(filename) + self._map.removefile(filename, in_merge=self.in_merge) return True @requires_no_parents_change