Mercurial > hg-stable
changeset 47667:d06ced90c80f
dirstate-item: use `set_possibly_dirty` in `pure.pack_dirstate`
Lets make use of the new function.
Differential Revision: https://phab.mercurial-scm.org/D11120
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 06:30:04 +0200 |
parents | e53256a9f9c5 |
children | 724a77979b47 |
files | mercurial/pure/parsers.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Mon Jul 19 06:29:30 2021 +0200 +++ b/mercurial/pure/parsers.py Mon Jul 19 06:30:04 2021 +0200 @@ -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])