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.
( )
Alphare |
hg-reviewers |
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.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/dirstate.py (13 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
3f65a0be4353 | f37409e7a0e3 | Pierre-Yves David | Nov 17 2021, 2:26 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
# the file is no longer relevant to anyone | # the file is no longer relevant to anyone | ||||
if self._map.get(filename) is not None: | if self._map.get(filename) is not None: | ||||
self._map.reset_state(filename) | self._map.reset_state(filename) | ||||
self._dirty = True | self._dirty = True | ||||
elif (not p1_tracked) and wc_tracked: | elif (not p1_tracked) and wc_tracked: | ||||
if entry is not None and entry.added: | if entry is not None and entry.added: | ||||
return # avoid dropping copy information (maybe?) | return # avoid dropping copy information (maybe?) | ||||
parentfiledata = None | |||||
if wc_tracked and p1_tracked: | |||||
parentfiledata = self._get_filedata(filename) | |||||
self._map.reset_state( | self._map.reset_state( | ||||
filename, | filename, | ||||
wc_tracked, | wc_tracked, | ||||
p1_tracked, | p1_tracked, | ||||
# the underlying reference might have changed, we will have to | # the underlying reference might have changed, we will have to | ||||
# check it. | # check it. | ||||
has_meaningful_mtime=False, | has_meaningful_mtime=False, | ||||
parentfiledata=parentfiledata, | |||||
) | ) | ||||
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] | |||||
@requires_parents_change | @requires_parents_change | ||||
def update_file( | def update_file( | ||||
self, | self, | ||||
filename, | filename, | ||||
wc_tracked, | wc_tracked, | ||||
p1_tracked, | p1_tracked, | ||||
p2_info=False, | p2_info=False, |