# HG changeset patch # User Pierre-Yves David # Date 2021-10-01 00:43:39 # Node ID de0977ec2d2541b94d69be56930baea13fa221fd # Parent 180e8fa345cc582ea4ea29dee63ea90a6173fc50 dirstate: drop an incorrect comment We are actually checking that we are only in a case were the file might needs lookup before doing this. So the comment is not relevant. Differential Revision: https://phab.mercurial-scm.org/D11590 diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -579,10 +579,7 @@ class dirstate(object): not possibly_dirty and not p2_info and wc_tracked and p1_tracked ) - # this mean we are doing call for file we do not really care about the - # data (eg: added or removed), however this should be a minor overhead - # compared to the overall update process calling this. - if need_parent_file_data or parentfiledata is None: + if need_parent_file_data and parentfiledata is None: parentfiledata = self._get_filedata(filename) self._map.reset_state(