changeset 47746:56297381af90

amend: use `update_file` instead of `drop` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11188
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jul 2021 09:07:08 +0200
parents 06d57a91441e
children 452e7048293d
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Mon Jul 19 03:16:40 2021 +0200
+++ b/mercurial/cmdutil.py	Mon Jul 19 09:07:08 2021 +0200
@@ -3004,7 +3004,7 @@
             # to "removed" in the dirstate.
             removedfiles = set(wctx.removed()) & filestoamend
             for f in removedfiles:
-                dirstate.drop(f)
+                dirstate.update_file(f, p1_tracked=False, wc_tracked=False)
 
         mapping = {old.node(): (newid,)}
         obsmetadata = None