comparison rust/hg-core/src/dirstate/parsers.rs @ 48260:269ff8978086

dirstate: store mtimes with nanosecond precision in memory Keep integer seconds since the Unix epoch, together with integer nanoseconds in the `0 <= n < 1e9` range. For now, nanoseconds are still always zero. This commit is about data structure changes. Differential Revision: https://phab.mercurial-scm.org/D11684
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 18 Oct 2021 11:23:07 +0200
parents bf8837e3d7ce
children c7fb9b74e753
comparison
equal deleted inserted replaced
48259:84f6b0c41b90 48260:269ff8978086
133 if let Some(source) = copy_source { 133 if let Some(source) = copy_source {
134 packed.push(b'\0'); 134 packed.push(b'\0');
135 packed.extend(source.as_bytes()); 135 packed.extend(source.as_bytes());
136 } 136 }
137 } 137 }
138
139 /// Seconds since the Unix epoch
140 pub struct Timestamp(pub i64);