jj/lib
Martin von Zweigbergk 49fb26fdae working_copy: write state file even if only mtimes changed
When the main `TreeState::snapshot()` thread doesn't receive any
updated tree entries over the channel, it correctly doesn't write a
new tree. However, it also doesn't write the working copy state file
(`.jj/working_copy/tree_state`). This resulted in performance
regression in 3f97a6da78. From that commit, repeated snapshotting
would have to re-read all files from disk because it didn't remember
the updated mtime from the previous time.

This patch fixes the bug by also writing the file if there were any
new file states.
2023-08-22 14:45:52 -07:00
..
benches
gen-protos
src working_copy: write state file even if only mtimes changed 2023-08-22 14:45:52 -07:00
tests cleanup: replace x[n..n+l] by x[n..][..l] 2023-08-21 22:29:46 -07:00
testutils tests: validate snapshot.max-new-file-size behavior 2023-08-17 19:29:38 -07:00
Cargo.toml