[Updated] D11138: dirstate: properly update `_lastnormaltime` in `update_file_p1`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Tue Jul 20 20:36:06 UTC 2021


Closed by commit rHGff481c238496: dirstate: properly update `_lastnormaltime` in `update_file_p1` (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/D11138?vs=29557&id=29639

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

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

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
@@ -552,6 +552,14 @@
             possibly_dirty=possibly_dirty,
             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
     def update_file(



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


More information about the Mercurial-patches mailing list