comparison mercurial/pure/parsers.py @ 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 265cdfaad372
comparison
equal deleted inserted replaced
47666:e53256a9f9c5 47667:d06ced90c80f
586 # The user could change the file without changing its size 586 # The user could change the file without changing its size
587 # within the same second. Invalidate the file's mtime in 587 # within the same second. Invalidate the file's mtime in
588 # dirstate, forcing future 'status' calls to compare the 588 # dirstate, forcing future 'status' calls to compare the
589 # contents of the file if the size is the same. This prevents 589 # contents of the file if the size is the same. This prevents
590 # mistakenly treating such files as clean. 590 # mistakenly treating such files as clean.
591 e = DirstateItem(e.state, e.mode, e.size, AMBIGUOUS_TIME) 591 e.set_possibly_dirty()
592 dmap[f] = e
593 592
594 if f in copymap: 593 if f in copymap:
595 f = b"%s\0%s" % (f, copymap[f]) 594 f = b"%s\0%s" % (f, copymap[f])
596 e = _pack( 595 e = _pack(
597 b">cllll", 596 b">cllll",