Mercurial > hg
comparison rust/hg-core/src/dirstate/entry.rs @ 49373:f8ec7b16c98f stable
rust: add message to `DirstateV2ParseError` to give some context
This is useful when debugging.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Wed, 18 May 2022 09:50:39 +0100 |
parents | 7241b3721ba5 |
children | c7fb9b74e753 |
comparison
equal
deleted
inserted
replaced
49372:270f8e89ff32 | 49373:f8ec7b16c98f |
---|---|
81 truncated_seconds, | 81 truncated_seconds, |
82 nanoseconds, | 82 nanoseconds, |
83 second_ambiguous, | 83 second_ambiguous, |
84 }) | 84 }) |
85 } else { | 85 } else { |
86 Err(DirstateV2ParseError) | 86 Err(DirstateV2ParseError::new("when reading datetime")) |
87 } | 87 } |
88 } | 88 } |
89 | 89 |
90 /// Returns a `TruncatedTimestamp` for the modification time of `metadata`. | 90 /// Returns a `TruncatedTimestamp` for the modification time of `metadata`. |
91 /// | 91 /// |