jj/lib/tests
Yuya Nishihara 92cfffd843 git: on external HEAD move, do not abandon old branch
The current behavior was introduced by 20eb9ecec1 "git: don't abandon
HEAD commit when it loses a branch." While the change made HEAD mutation
behavior more consistent with a plain ref operation, HEAD can also move on
checkout, and checkout shouldn't be considered a history rewriting operation.

I'm not saying the new behavior is always correct, but I think it's safer
than losing old HEAD branch. I also think this change will help if we want
to extract HEAD management function from git::import_refs().

Fixes #1042.
2023-05-11 10:15:31 +09:00
..
test_bad_locking.rs repo: replace load_at_head() by helper in tests 2023-02-27 09:44:28 -08:00
test_commit_builder.rs commit_builder: add accessors for most fields 2023-03-19 00:48:05 -07:00
test_commit_concurrent.rs repo: replace load_at_head() by helper in tests 2023-02-27 09:44:28 -08:00
test_conflicts.rs conflicts: fix off-by-one error in materialize_merge_result() 2023-02-24 19:58:10 +09:00
test_default_revset_graph_iterator.rs revset: resolve visible heads prior to evaluation 2023-04-10 00:39:58 +09:00
test_diff_summary.rs matchers: simplify FilesMatcher::new() to take slice of paths 2022-12-30 14:15:27 +09:00
test_git.rs git: on external HEAD move, do not abandon old branch 2023-05-11 10:15:31 +09:00
test_index.rs index: remove entry_by_id() from trait 2023-04-18 18:32:23 -07:00
test_init.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_load_repo.rs repo: propagate error when failing to look up backend type 2023-02-27 09:44:28 -08:00
test_merge_trees.rs backend: rename ConflictPart to ConflictTerm 2023-02-17 23:28:50 -08:00
test_mut_repo.rs tests: avoid some unnecessary calls to index().stats() 2023-03-12 22:08:31 -07:00
test_operations.rs repo: implement Repo on ReadonlyRepo instead of its Arc 2023-03-21 21:43:44 -07:00
test_refs.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_revset.rs revset: add substitution rule for nested descendants/children 2023-04-24 20:45:13 +09:00
test_rewrite.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_view.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_working_copy.rs working_copy: introduce snapshot progress callback 2023-05-06 11:07:46 -07:00
test_working_copy_concurrent.rs working_copy: introduce snapshot progress callback 2023-05-06 11:07:46 -07:00
test_working_copy_sparse.rs working_copy: introduce snapshot progress callback 2023-05-06 11:07:46 -07:00
test_workspace.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00