jj/lib/tests
Martin von Zweigbergk 416a36a59c git: don't abandon root commit when all refs are gone
If you remove all refs from the backing Git repo and then run `jj git
import`, we would see that all commits disappeared from the Git repo,
so we would remove them from the jj repo too. However, we do that by
doing a history walk from old heads to the new heads, which includes
the root commit when the new heads is an empty set. That means that we
mark the root commit as abandoned, which led to a crash in
`rewrite.rs` (when we try pick the root commit's first parent to use
as parent for rebased commits).
2022-10-29 03:02:26 -07:00
..
test_bad_locking.rs workspace: make capable of loading with out-of-tree backend 2022-09-25 09:40:42 -07:00
test_commit_builder.rs backend: let each backend handle root commit on write 2022-09-20 21:20:57 -07:00
test_commit_concurrent.rs repo: make capable of loading repo with out-of-tree backend 2022-09-25 09:40:42 -07:00
test_conflicts.rs conflicts: change diff line marker to %%%%%%% 2022-09-20 15:26:29 +09:00
test_diff_summary.rs tests: remove &UserSettings argument from TestRepo::init() 2022-05-21 22:33:16 -07:00
test_git.rs git: don't abandon root commit when all refs are gone 2022-10-29 03:02:26 -07:00
test_index.rs repo: make capable of loading repo with out-of-tree backend 2022-09-25 09:40:42 -07:00
test_init.rs cleanup: replace some PathBuf args by &Path 2022-09-25 09:40:42 -07:00
test_load_repo.rs repo: make capable of loading repo with out-of-tree backend 2022-09-25 09:40:42 -07:00
test_merge_trees.rs backend: let each backend handle root commit on write 2022-09-20 21:20:57 -07:00
test_mut_repo.rs repo: forbid checking out the root commit 2022-10-21 10:10:07 -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 revset: remove redundant candidates argument from merges() 2022-10-27 21:33:35 +09:00
test_revset_graph_iterator.rs tests: remove &UserSettings argument from TestRepo::init() 2022-05-21 22:33:16 -07:00
test_rewrite.rs repo: forbid checking out the root commit 2022-10-21 10:10:07 -07:00
test_view.rs repo: forbid checking out the root commit 2022-10-21 10:10:07 -07:00
test_working_copy.rs tests: remove obsolete workaround for WorkingCopy reading from $HOME 2022-10-23 11:08:22 -07:00
test_working_copy_concurrent.rs working_copy: remove .clone() from TreeState proxy methods 2022-10-02 22:46:09 +09:00
test_working_copy_sparse.rs working_copy: do not overwrite ignored file 2022-08-07 15:06:30 +02:00
test_workspace.rs workspace: propagate I/O errors gracefully 2022-10-28 11:51:53 -07:00