[Commented On] D10987: dirstate-item: use the properties in fakedirstatewritetime
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Wed Jul 7 12:00:59 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 28924.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10987?vs=28842&id=28924
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10987/new/
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, SimonSapin, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210707/e34fa694/attachment-0002.html>
More information about the Mercurial-patches
mailing list