changeset 47971 | c0157aca5bf5 |
parent 47970 | 7ab99007fce5 |
child 47972 | 5a6c1ef4bcac |
--- a/mercurial/dirstate.py Thu Sep 02 02:44:12 2021 +0200 +++ b/mercurial/dirstate.py Thu Sep 02 02:48:56 2021 +0200 @@ -496,13 +496,13 @@ entry = self._map.get(filename) if entry is None: return False - elif entry.added: - self._drop(filename) - return True else: self._dirty = True self._updatedfiles.add(filename) - self._map.set_untracked(filename) + if entry.added: + self._map.dropfile(filename) + else: + self._map.set_untracked(filename) return True @requires_no_parents_change