changeset 48145:180e8fa345cc

dirstate: drop some duplicated code The same operation is done a handful a line lower. Differential Revision: https://phab.mercurial-scm.org/D11589
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 01 Oct 2021 01:45:20 +0200
parents 6f54afb094bd
children de0977ec2d25
files mercurial/dirstate.py
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Thu Sep 30 16:33:12 2021 +0200
+++ b/mercurial/dirstate.py	Fri Oct 01 01:45:20 2021 +0200
@@ -582,17 +582,8 @@
         # 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:
-            if parentfiledata is None:
-                parentfiledata = self._get_filedata(filename)
-            mtime = parentfiledata[2]
-
-            if mtime > 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 = mtime
+        if need_parent_file_data or parentfiledata is None:
+            parentfiledata = self._get_filedata(filename)
 
         self._map.reset_state(
             filename,