changeset 47710:3148204e649e

sparse: use `update_file` instead of `normal` in `refreshwdir` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11152
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jul 2021 01:58:34 +0200
parents a0e79084389d
children b492bc018011
files mercurial/sparse.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)