D11169: mergestate: use `update_file` to handle `for ACTION_EXEC`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Jul 19 14:09:30 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is the newer, more semantic API.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11169
AFFECTED FILES
mercurial/mergestate.py
CHANGE DETAILS
diff --git a/mercurial/mergestate.py b/mercurial/mergestate.py
--- a/mercurial/mergestate.py
+++ b/mercurial/mergestate.py
@@ -776,7 +776,9 @@
# exec change
for f, args, msg in actions.get(ACTION_EXEC, []):
- repo.dirstate.normallookup(f)
+ repo.dirstate.update_file(
+ f, p1_tracked=True, wc_tracked=True, possibly_dirty=True
+ )
# keep
for f, args, msg in actions.get(ACTION_KEEP, []):
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list