Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/lib.rs @ 47115:5d62243c7732
rust: Add a Timestamp struct instead of abusing Duration
`SystemTime` would be the standard library type semantically appropriate
instead of `Duration`.
But since the value is coming from Python as a plain integer and used in
dirstate packing code as an integer, let?s make a type that contains a single
integer instead of using one with sub-second precision.
Differential Revision: https://phab.mercurial-scm.org/D10485
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 12 Apr 2021 14:43:45 +0200 |
parents | 787ff5d21bcd |
children | ed1583a845d2 |
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs Tue Apr 06 21:07:12 2021 +0200 +++ b/rust/hg-core/src/lib.rs Mon Apr 12 14:43:45 2021 +0200 @@ -8,7 +8,7 @@ pub mod dagops; pub mod errors; pub use ancestors::{AncestorsIterator, LazyAncestors, MissingAncestors}; -mod dirstate; +pub mod dirstate; pub mod dirstate_tree; pub mod discovery; pub mod requirements;