[Updated] D11432: dirstate: replace the use of `_normallookup` in `rebuild`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Sep 20 14:08:11 UTC 2021


Closed by commit rHG14fa2e583422: dirstate: replace the use of `_normallookup` in `rebuild` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11432?vs=30270&id=30314

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

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

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
@@ -853,7 +853,17 @@
         self._map.setparents(parent, self._nodeconstants.nullid)
 
         for f in to_lookup:
-            self._normallookup(f)
+
+            if self.in_merge:
+                self.set_tracked(f)
+            else:
+                self._map.reset_state(
+                    f,
+                    wc_tracked=True,
+                    p1_tracked=True,
+                    possibly_dirty=True,
+                )
+            self._updatedfiles.add(f)
         for f in to_drop:
             if self._map.dropfile(f):
                 self._updatedfiles.add(f)



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


More information about the Mercurial-patches mailing list