mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-07 04:51:45 +00:00
working_copy: fix an incorrect comment about timestamps
This commit is contained in:
parent
9ac643ed1a
commit
033bfe7d5b
1 changed files with 2 additions and 2 deletions
|
@ -251,10 +251,10 @@ impl TreeState {
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut temp_file = NamedTempFile::new_in(&self.state_path).unwrap();
|
let mut temp_file = NamedTempFile::new_in(&self.state_path).unwrap();
|
||||||
// update read time while we still have the file open for writes, so we know
|
proto.write_to_writer(temp_file.as_file_mut()).unwrap();
|
||||||
|
// update own write time while we before we rename it, so we know
|
||||||
// there is no unknown data in it
|
// there is no unknown data in it
|
||||||
self.update_own_mtime();
|
self.update_own_mtime();
|
||||||
proto.write_to_writer(temp_file.as_file_mut()).unwrap();
|
|
||||||
// TODO: Retry if persisting fails (it will on Windows if the file happened to
|
// TODO: Retry if persisting fails (it will on Windows if the file happened to
|
||||||
// be open for read).
|
// be open for read).
|
||||||
temp_file
|
temp_file
|
||||||
|
|
Loading…
Reference in a new issue