dirstatemap: use `set_possibly_dirty` in `clearambiguoustimes`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 06:20:00 +0200
changeset 47668 724a77979b47
parent 47667 d06ced90c80f
child 47669 55c8e0d52eef
dirstatemap: use `set_possibly_dirty` in `clearambiguoustimes` lets put this new method to use Differential Revision: https://phab.mercurial-scm.org/D11121
mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py	Mon Jul 19 06:30:04 2021 +0200
+++ b/mercurial/dirstatemap.py	Mon Jul 19 06:20:00 2021 +0200
@@ -261,9 +261,7 @@
         for f in files:
             e = self.get(f)
             if e is not None and e.need_delay(now):
-                self._map[f] = DirstateItem(
-                    e.state, e.mode, e.size, AMBIGUOUS_TIME
-                )
+                e.set_possibly_dirty()
                 self.nonnormalset.add(f)
 
     def nonnormalentries(self):