[Updated] D11313: dirstate: directly call the dirstatemap in `set_untracked`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sun Aug 22 21:40:43 UTC 2021


Closed by commit rHG1c797757f5bb: dirstate: directly call the dirstatemap in `set_untracked` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11313?vs=29962&id=29986

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11313/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11313

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -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



To: marmoute, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210822/6ecc9be8/attachment-0002.html>


More information about the Mercurial-patches mailing list