Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

Commit 18e3ffca authored by Pierre-Yves David's avatar Pierre-Yves David 🐙
Browse files

dirstate: stop gathering parentfiledata in update_file_p1

Gathering information here assume that they are valid cache information for a
clean file. It is true most of the time, but not garanteed.

So we drop this and will let the next `hg status` call record actual information.

Differential Revision:
parent 080151f18f3a
......@@ -536,10 +536,6 @@ class dirstate(object):
if entry is not None and entry.added:
return # avoid dropping copy information (maybe?)
parentfiledata = None
if wc_tracked and p1_tracked:
parentfiledata = self._get_filedata(filename)
......@@ -547,16 +543,7 @@ class dirstate(object):
# the underlying reference might have changed, we will have to
# check it.
if (
parentfiledata is not None
and parentfiledata[2] > self._lastnormaltime
# Remember the most recent modification timeslot for status(),
# to make sure we won't miss future size-preserving file content
# modifications that happen within the same timeslot.
self._lastnormaltime = parentfiledata[2]
def update_file(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment