Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pure/parsers.py @ 48449:995aaacb12d7
dirstate-item: make sure we set the mtime-second-ambiguous on v2 write
We want to preserve the second-ambiguity alongside the ambiguous mtime. So we
use the decimated flag for that.
note: the C code was already doing so. No change was needed to it.
Differential Revision: https://phab.mercurial-scm.org/D11845
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 24 Nov 2021 05:00:06 +0100 |
parents | 0b3f3a3ca50a |
children | be2317167a9b |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Wed Nov 24 04:59:48 2021 +0100 +++ b/mercurial/pure/parsers.py Wed Nov 24 05:00:06 2021 +0100 @@ -483,6 +483,8 @@ flags |= DIRSTATE_V2_MODE_IS_SYMLINK if self._mtime_s is not None: flags |= DIRSTATE_V2_HAS_MTIME + if self._mtime_second_ambiguous: + flags |= DIRSTATE_V2_MTIME_SECOND_AMBIGUOUS if self._fallback_exec is not None: flags |= DIRSTATE_V2_HAS_FALLBACK_EXEC