mercurial/sparse.py
changeset 47710 3148204e649e
parent 47709 a0e79084389d
child 47737 e0e69a7d7af8
--- a/mercurial/sparse.py	Mon Jul 19 01:58:24 2021 +0200
+++ b/mercurial/sparse.py	Mon Jul 19 01:58:34 2021 +0200
@@ -565,7 +565,7 @@
 
     # Fix dirstate
     for file in added:
-        dirstate.normal(file)
+        dirstate.update_file(file, p1_tracked=True, wc_tracked=True)
 
     for file in dropped:
         dirstate.drop(file)