rust/hg-core/src/dirstate/entry.rs
changeset 48401 995aaacb12d7
parent 48400 0b3f3a3ca50a
child 48422 000130cfafb6
equal deleted inserted replaced
48400:0b3f3a3ca50a 48401:995aaacb12d7
    41 #[derive(Debug, Copy, Clone)]
    41 #[derive(Debug, Copy, Clone)]
    42 pub struct TruncatedTimestamp {
    42 pub struct TruncatedTimestamp {
    43     truncated_seconds: u32,
    43     truncated_seconds: u32,
    44     /// Always in the `0 .. 1_000_000_000` range.
    44     /// Always in the `0 .. 1_000_000_000` range.
    45     nanoseconds: u32,
    45     nanoseconds: u32,
    46     second_ambiguous: bool,
    46     /// TODO this should be in DirstateEntry, but the current code needs
       
    47     /// refactoring to use DirstateEntry instead of TruncatedTimestamp for
       
    48     /// comparison.
       
    49     pub second_ambiguous: bool,
    47 }
    50 }
    48 
    51 
    49 impl TruncatedTimestamp {
    52 impl TruncatedTimestamp {
    50     /// Constructs from a timestamp potentially outside of the supported range,
    53     /// Constructs from a timestamp potentially outside of the supported range,
    51     /// and truncate the seconds components to its lower 31 bits.
    54     /// and truncate the seconds components to its lower 31 bits.