[Updated] D11122: dirstate: add a `set_possibly_dirty` in `fakedirstatewritetime`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Tue Jul 20 11:18:28 UTC 2021


Closed by commit rHG55c8e0d52eef: dirstate: add a `set_possibly_dirty` in `fakedirstatewritetime` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11122?vs=29541&id=29599

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11122/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11122

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
@@ -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)
 



To: marmoute, #hg-reviewers, Alphare, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210720/a0e94693/attachment-0002.html>


More information about the Mercurial-patches mailing list