diff mercurial/dirstate.py @ 48387:f838f5bca038

dirstate: stop gathering parentfiledata in update_file Gathering information here assume that they are valid cache information for a clean file. It is true most of the time, but not garanteed. Accurate data can still be explicitly provided. We drop the spontaneous and will let the next `hg status` call record actual information. Differential Revision: https://phab.mercurial-scm.org/D11791
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 17 Nov 2021 20:27:27 +0100
parents 6becd5773133
children 322525db4c98
line wrap: on
line diff
--- a/mercurial/dirstate.py	Wed Nov 17 20:26:33 2021 +0100
+++ b/mercurial/dirstate.py	Wed Nov 17 20:27:27 2021 +0100
@@ -573,13 +573,6 @@
 
         self._dirty = True
 
-        need_parent_file_data = (
-            not possibly_dirty and not p2_info and wc_tracked and p1_tracked
-        )
-
-        if need_parent_file_data and parentfiledata is None:
-            parentfiledata = self._get_filedata(filename)
-
         self._map.reset_state(
             filename,
             wc_tracked,