ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/tests
Martin von Zweigbergk 1f27a78957 view: make remove_head() not add parents as heads
I think it's better to let the caller decide if the parents should be
added. One use case for removing a head is when fetching from a Git
remote where a branch has been rewritten. In that case, it's probably
the best user experience to remove the old head. With the current
semantics of `View::remove_head()`, we would need to walk up the graph
to find a commit that's an ancestor and for each commit we remove as
head, its parents get temporarily added as heads. It's much easier for
callers that want to add the parents as heads to do that.
2021-01-15 01:08:05 -08:00
..
test_bad_locking.rs repo: return error when attempting to load repo where there is none 2021-01-04 09:18:09 -08:00
test_commit_builder.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_commit_concurrent.rs repo: return error when attempting to load repo where there is none 2021-01-04 09:18:09 -08:00
test_diff_summary.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_evolution.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_git.rs git: slightly simplify a few tests 2021-01-11 00:34:04 -08:00
test_index.rs view: make remove_head() not add parents as heads 2021-01-15 01:08:05 -08:00
test_init.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_load_repo.rs repo: return error when attempting to load repo where there is none 2021-01-04 09:18:09 -08:00
test_merge_trees.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_operations.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_transaction.rs view: make remove_head() not add parents as heads 2021-01-15 01:08:05 -08:00
test_view.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_working_copy.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_working_copy_concurrent.rs repo: return error when attempting to load repo where there is none 2021-01-04 09:18:09 -08:00