comparison rust/hg-core/src/dirstate_tree/on_disk.rs @ 48398:111098af6356

dirstate-item: add a "second_ambiguous` flag in the mtime tuple This will be used to support the `mtime-second-ambiguous` flag from dirstate v2. See format documentation for details. For now, we only make it possible to store the information, no other logic have been added. Differential Revision: https://phab.mercurial-scm.org/D11842
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 24 Nov 2021 04:40:00 +0100
parents 749946b6a641
children 995aaacb12d7
comparison
equal deleted inserted replaced
48397:8d585aa9becf 48398:111098af6356
771 timestamp: PackedTruncatedTimestamp, 771 timestamp: PackedTruncatedTimestamp,
772 ) -> Result<Self, Self::Error> { 772 ) -> Result<Self, Self::Error> {
773 Self::from_already_truncated( 773 Self::from_already_truncated(
774 timestamp.truncated_seconds.get(), 774 timestamp.truncated_seconds.get(),
775 timestamp.nanoseconds.get(), 775 timestamp.nanoseconds.get(),
776 false,
776 ) 777 )
777 } 778 }
778 } 779 }
779 impl PackedTruncatedTimestamp { 780 impl PackedTruncatedTimestamp {
780 fn null() -> Self { 781 fn null() -> Self {