mercurial/cmdutil.py
changeset 47596 791e2333d3d3
parent 47565 00ae1fb6c459
child 47602 8f0c3533e28c
--- a/mercurial/cmdutil.py	Thu Jul 08 00:57:25 2021 +0200
+++ b/mercurial/cmdutil.py	Thu Jul 08 01:20:46 2021 +0200
@@ -3686,7 +3686,7 @@
         if f not in newlyaddedandmodifiedfiles:
             prntstatusmsg(b'add', f)
             checkout(f)
-            repo.dirstate.add(f)
+            repo.dirstate.set_tracked(f)
 
     normal = repo.dirstate.normallookup
     if node == parent and p2 == repo.nullid: