mercurial/cmdutil.py
changeset 47603 7c64688e554d
parent 47602 8f0c3533e28c
child 47608 3c0efa0eeea6
--- 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: