D10987: dirstate-item: use the properties in fakedirstatewritetime
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Jul 5 09:34:58 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/D10987
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
@@ -42,8 +42,10 @@
# for consistency
actualnow = int(now)
for f, e in dmap.items():
- if e[0] == 'n' and e[3] == actualnow:
- e = parsers.DirstateItem(e[0], e[1], e[2], -1)
+ if e.need_delay(actualnow):
+ e = parsers.DirstateItem(
+ e.state, e.mode, e.size, dirstatemapmod.AMBIGUOUS_TIME
+ )
dmap[f] = e
return orig(dmap, copymap, pl, fakenow)
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list