D11122: dirstate: add a `set_possibly_dirty` in `fakedirstatewritetime`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Jul 19 10:39:20 UTC 2021


marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/fakedirstatewritetime.py

CHANGE DETAILS

diff --git a/tests/fakedirstatewritetime.py b/tests/fakedirstatewritetime.py
--- a/tests/fakedirstatewritetime.py
+++ b/tests/fakedirstatewritetime.py
@@ -43,10 +43,7 @@
     actualnow = int(now)
     for f, e in dmap.items():
         if e.need_delay(actualnow):
-            e = parsers.DirstateItem(
-                e.state, e.mode, e.size, dirstatemapmod.AMBIGUOUS_TIME
-            )
-            dmap[f] = e
+            e.set_possibly_dirty()
 
     return orig(dmap, copymap, pl, fakenow)
 



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


More information about the Mercurial-devel mailing list