Mercurial > hg-stable
changeset 47669:55c8e0d52eef
dirstate: add a `set_possibly_dirty` in `fakedirstatewritetime`
Differential Revision: https://phab.mercurial-scm.org/D11122
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 06:21:04 +0200 |
parents | 724a77979b47 |
children | ec1d63e64448 |
files | tests/fakedirstatewritetime.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)