[Commented On] D11170: amend: use `update_file` instead of `normallookup`
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Mon Jul 19 20:04:42 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 29515.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11170?vs=29448&id=29515
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11170/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11170
AFFECTED FILES
mercurial/cmdutil.py
CHANGE DETAILS
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -2984,7 +2984,9 @@
# would mark them as clean but with uncommitted contents.
normalfiles = set(wctx.modified() + wctx.added()) & filestoamend
for f in normalfiles:
- dirstate.normallookup(f)
+ dirstate.update_file(
+ f, p1_tracked=True, wc_tracked=True, possibly_dirty=True
+ )
# Update the state of files which were removed in the amend
# to "removed" in the dirstate.
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/20210719/e498613c/attachment-0002.html>
More information about the Mercurial-patches
mailing list