[Updated] D11120: dirstate-item: use `set_possibly_dirty` in `pure.pack_dirstate`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Jul 20 11:18:19 UTC 2021
Closed by commit rHGd06ced90c80f: dirstate-item: use `set_possibly_dirty` in `pure.pack_dirstate` (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/D11120?vs=29539&id=29597
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11120/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11120
AFFECTED FILES
mercurial/pure/parsers.py
CHANGE DETAILS
diff --git a/mercurial/pure/parsers.py b/mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py
+++ b/mercurial/pure/parsers.py
@@ -588,8 +588,7 @@
# dirstate, forcing future 'status' calls to compare the
# contents of the file if the size is the same. This prevents
# mistakenly treating such files as clean.
- e = DirstateItem(e.state, e.mode, e.size, AMBIGUOUS_TIME)
- dmap[f] = e
+ e.set_possibly_dirty()
if f in copymap:
f = b"%s\0%s" % (f, copymap[f])
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/c04e28b1/attachment-0002.html>
More information about the Mercurial-patches
mailing list