[Updated] D11589: dirstate: drop some duplicated code

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sun Oct 3 21:35:46 UTC 2021


Closed by commit rHG180e8fa345cc: dirstate: drop some duplicated code (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11589?vs=30594&id=30647

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11589/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11589

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -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,



To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211003/66b4229b/attachment-0002.html>


More information about the Mercurial-patches mailing list