Mercurial > hg-stable
changeset 48270:84f6b0c41b90
rust: remove now-unused DirstateEntry::clear_ambiguous_mtime method
Differential Revision: https://phab.mercurial-scm.org/D11696
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 19 Oct 2021 21:03:13 +0200 |
parents | c591944f42c1 |
children | 269ff8978086 |
files | rust/hg-core/src/dirstate/entry.rs |
diffstat | 1 files changed, 0 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/entry.rs Tue Oct 19 22:14:48 2021 +0200 +++ b/rust/hg-core/src/dirstate/entry.rs Tue Oct 19 21:03:13 2021 +0200 @@ -580,23 +580,6 @@ pub fn need_delay(&self, now: i32) -> bool { self.state() == EntryState::Normal && self.mtime() == now } - - pub fn clear_ambiguous_mtime(&mut self, now: i32) -> bool { - let ambiguous = self.need_delay(now); - if ambiguous { - // The file was last modified "simultaneously" with the current - // write to dirstate (i.e. within the same second for file- - // systems with a granularity of 1 sec). This commonly happens - // for at least a couple of files on 'update'. - // The user could change the file without changing its size - // within the same second. Invalidate the file's mtime in - // dirstate, forcing future 'status' calls to compare the - // contents of the file if the size is the same. This prevents - // mistakenly treating such files as clean. - self.set_possibly_dirty() - } - ambiguous - } } impl EntryState {