jj/lib/tests
Yuya Nishihara 51520bc87b working_copy: don't follow symlinks while creating parent directories
Otherwise a file could be created out of the working copy directory.

This only works for untracked symlinks and sequentially "added" symlinks
and files. For "removed" and "modified" entries, the parent directories are
considered valid and fs::remove_file() will be called. This also doesn't
prevent race conditions caused by concurrent checkouts.

New create_parent_dirs() would be slightly slower than the original because
it traverses directories from the root whereas fs::create_dir_all() does that
from the leaf and exits when reached to a directory.
2022-08-17 13:22:51 +09:00
..
test_bad_locking.rs tests: move init_{repo,workspace} functions onto types 2022-05-21 22:33:16 -07:00
test_commit_builder.rs CommitBuilder: remove unneeded store arguments 2022-07-06 07:21:57 -07:00
test_commit_concurrent.rs tests: move init_{repo,workspace} functions onto types 2022-05-21 22:33:16 -07:00
test_conflicts.rs conflicts: minimize diffs in materialized conflicts 2022-07-12 07:46:45 -07:00
test_diff_summary.rs tests: remove &UserSettings argument from TestRepo::init() 2022-05-21 22:33:16 -07:00
test_git.rs tests: remove &UserSettings argument from TestRepo::init() 2022-05-21 22:33:16 -07:00
test_index.rs tests: remove &UserSettings argument from TestRepo::init() 2022-05-21 22:33:16 -07:00
test_init.rs tests: move init_{repo,workspace} functions onto types 2022-05-21 22:33:16 -07:00
test_load_repo.rs tests: remove &UserSettings argument from TestRepo::init() 2022-05-21 22:33:16 -07:00
test_merge_trees.rs cleanup: fix some things reported by clippy 1.63 2022-08-12 09:10:32 -07:00
test_mut_repo.rs CommitBuilder: remove unneeded store arguments 2022-07-06 07:21:57 -07:00
test_operations.rs CommitBuilder: remove unneeded store arguments 2022-07-06 07:21:57 -07:00
test_refs.rs tests: move init_{repo,workspace} functions onto types 2022-05-21 22:33:16 -07:00
test_revset.rs CommitBuilder: remove unneeded store arguments 2022-07-06 07:21:57 -07:00
test_revset_graph_iterator.rs tests: remove &UserSettings argument from TestRepo::init() 2022-05-21 22:33:16 -07:00
test_rewrite.rs CommitBuilder: remove unneeded store arguments 2022-07-06 07:21:57 -07:00
test_view.rs CommitBuilder: remove unneeded store arguments 2022-07-06 07:21:57 -07:00
test_working_copy.rs working_copy: don't follow symlinks while creating parent directories 2022-08-17 13:22:51 +09:00
test_working_copy_concurrent.rs working_copy: propagate most errors on checkout 2022-05-25 11:51:18 -07:00
test_working_copy_sparse.rs working_copy: do not overwrite ignored file 2022-08-07 15:06:30 +02:00
test_workspace.rs tests: move init_{repo,workspace} functions onto types 2022-05-21 22:33:16 -07:00