revert: use `set_untracked` instead of `drop` when applicable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 08 Jul 2021 18:30:24 +0200
changeset 47603 7c64688e554d
parent 47602 8f0c3533e28c
child 47604 090fc6a95e50
revert: use `set_untracked` instead of `drop` when applicable This is the new shiny API. Differential Revision: https://phab.mercurial-scm.org/D11026
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Thu Jul 08 04:47:36 2021 +0200
+++ b/mercurial/cmdutil.py	Thu Jul 08 18:30:24 2021 +0200
@@ -3564,12 +3564,12 @@
             )
             if choice == 0:
                 prntstatusmsg(b'forget', f)
-                repo.dirstate.drop(f)
+                repo.dirstate.set_untracked(f)
             else:
                 excluded_files.append(f)
         else:
             prntstatusmsg(b'forget', f)
-            repo.dirstate.drop(f)
+            repo.dirstate.set_untracked(f)
     for f in actions[b'remove'][0]:
         audit_path(f)
         if interactive: