changeset 47737:e0e69a7d7af8

sparse: use `update_file` instead of `normallookup` in refreshwdir This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11179
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jul 2021 01:59:09 +0200
parents b9086ec4d28b
children c53008253113
files mercurial/sparse.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/sparse.py	Mon Jul 19 02:05:29 2021 +0200
+++ b/mercurial/sparse.py	Mon Jul 19 01:59:09 2021 +0200
@@ -572,7 +572,9 @@
 
     for file in lookup:
         # File exists on disk, and we're bringing it back in an unknown state.
-        dirstate.normallookup(file)
+        dirstate.update_file(
+            file, p1_tracked=True, wc_tracked=True, possibly_dirty=True
+        )
 
     return added, dropped, lookup