dirstate: add a `set_possibly_dirty` in `fakedirstatewritetime`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 06:21:04 +0200
changeset 47669 55c8e0d52eef
parent 47668 724a77979b47
child 47670 ec1d63e64448
dirstate: add a `set_possibly_dirty` in `fakedirstatewritetime` Differential Revision: https://phab.mercurial-scm.org/D11122
tests/fakedirstatewritetime.py
--- a/tests/fakedirstatewritetime.py	Mon Jul 19 06:20:00 2021 +0200
+++ b/tests/fakedirstatewritetime.py	Mon Jul 19 06:21:04 2021 +0200
@@ -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)