comparison mercurial/pure/parsers.py @ 48400:0b3f3a3ca50a

dirstate-item: ignore mtime to write v1 when `mtime-second-ambiguous` is set We cannot preserve that information in the v1 format so that mtime is ambiguous. Differential Revision: https://phab.mercurial-scm.org/D11844
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 24 Nov 2021 04:59:48 +0100
parents af303ae33cd7
children 995aaacb12d7
comparison
equal deleted inserted replaced
48399:af303ae33cd7 48400:0b3f3a3ca50a
549 return AMBIGUOUS_TIME 549 return AMBIGUOUS_TIME
550 elif self._p2_info: 550 elif self._p2_info:
551 return AMBIGUOUS_TIME 551 return AMBIGUOUS_TIME
552 elif not self._p1_tracked: 552 elif not self._p1_tracked:
553 return AMBIGUOUS_TIME 553 return AMBIGUOUS_TIME
554 elif self._mtime_second_ambiguous:
555 return AMBIGUOUS_TIME
554 else: 556 else:
555 return self._mtime_s 557 return self._mtime_s
556 558
557 559
558 def gettype(q): 560 def gettype(q):