diff rust/hg-core/src/dirstate/entry.rs @ 48263:83d0bd45b662

dirstate-v2: actually use sub-second mtime precision Instead of zero, set the nanoseconds field to its correct value whenever possible and preserve it across serialization+parsing. Differential Revision: https://phab.mercurial-scm.org/D11702
author Simon Sapin <simon.sapin@octobus.net>
date Wed, 13 Oct 2021 15:58:14 +0200
parents 68bb472aee9c
children d5a91701f7dc
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/entry.rs	Thu Oct 14 13:54:39 2021 +0200
+++ b/rust/hg-core/src/dirstate/entry.rs	Wed Oct 13 15:58:14 2021 +0200
@@ -91,11 +91,6 @@
         }
     }
 
-    pub fn to_integer_second(mut self) -> Self {
-        self.nanoseconds = 0;
-        self
-    }
-
     /// The lower 31 bits of the number of seconds since the epoch.
     pub fn truncated_seconds(&self) -> u32 {
         self.truncated_seconds