# HG changeset patch # User Pierre-Yves David # Date 2021-07-19 04:20:00 # Node ID 724a77979b479225e22430f300dbb56451d7dbc2 # Parent d06ced90c80fd69d94b1fb13d9cc001c6b95ad6c dirstatemap: use `set_possibly_dirty` in `clearambiguoustimes` lets put this new method to use Differential Revision: https://phab.mercurial-scm.org/D11121 diff --git a/mercurial/dirstatemap.py b/mercurial/dirstatemap.py --- a/mercurial/dirstatemap.py +++ b/mercurial/dirstatemap.py @@ -261,9 +261,7 @@ class dirstatemap(object): 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):