D11121: dirstatemap: use `set_possibly_dirty` in `clearambiguoustimes`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Jul 19 10:39:18 UTC 2021
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
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):
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list