dirstate: add a `set_possibly_dirty` in `fakedirstatewritetime`
Differential Revision: https://phab.mercurial-scm.org/D11122
--- 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)