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 cargo: rename crates from jujutsu/jujutsu-lib to jj-cli/jj-lib 2023-07-09 06:40:43 +02:00
gen-protos cargo: unify a lot of crate metadata in the workspace 2023-08-06 16:44:33 -05:00
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 settings: support human-readable byte sizes for max-new-file-size 2023-08-17 19:29:38 -07:00