[Updated] D12414: dirstate-cext: properly invalidate mtime and data in `set_untracked`

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Mon Mar 28 16:05:24 UTC 2022


Closed by commit rHG9bb700223f00: dirstate-cext: properly invalidate mtime and data in `set_untracked` (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12414?vs=32719&id=32720

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

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

AFFECTED FILES
  mercurial/cext/parsers.c

CHANGE DETAILS

diff --git a/mercurial/cext/parsers.c b/mercurial/cext/parsers.c
--- a/mercurial/cext/parsers.c
+++ b/mercurial/cext/parsers.c
@@ -517,6 +517,8 @@
 static PyObject *dirstate_item_set_untracked(dirstateItemObject *self)
 {
 	self->flags &= ~dirstate_flag_wc_tracked;
+	self->flags &= ~dirstate_flag_has_meaningful_data;
+	self->flags &= ~dirstate_flag_has_mtime;
 	self->mode = 0;
 	self->size = 0;
 	self->mtime_s = 0;



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


More information about the Mercurial-patches mailing list