revert: use `set_untracked` instead of `drop` when applicable
This is the new shiny API.
Differential Revision: https://phab.mercurial-scm.org/D11026
--- 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: