[Request] [+ ] D11432: dirstate: replace the use of `_normallookup` in `rebuild`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Sep 16 14:44:34 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Normal lookup is a complicated function that we want to get rid of.
REPOSITORY
rHG Mercurial
BRANCH
default
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
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210916/defa351b/attachment.html>
More information about the Mercurial-patches
mailing list