Patchwork D11121: dirstatemap: use `set_possibly_dirty` in `clearambiguoustimes`

login
register
mail settings
Submitter phabricator
Date July 19, 2021, 10:39 a.m.
Message ID <differential-rev-PHID-DREV-3syd6m3vid6e65nbfpmb-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49434/
State Superseded
Headers show

Comments

phabricator - July 19, 2021, 10:39 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  lets put this new method to use

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/dirstatemap.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/dirstatemap.py b/mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py
+++ b/mercurial/dirstatemap.py
@@ -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):