ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/tests
Yuya Nishihara 57167cefda git: on import_refs(), don't abandon ancestors of newly fetched refs
I made import_refs() not preserve commits referenced by remote branches at
520f692a46 "git: on import_refs(), don't preserve old branches referenced by
remote refs." The idea is that remote branches are weak, and commits referenced
by these refs can be freely rewritten by future local changes without moving
the refs. I don't think that's wrong, but 520f692a46 also made "new" remote
changes be abandoned by old remote refs. This problem occurs only when
git.auto-local-branch is off.

I think there are two ways to fix the problem:
 a. pin non-tracking remote branches just like local refs
 b. pin newly fetched refs in addition to local refs
This patch implements (b) because it's simpler and more obvious that the
fetched commits would never be abandoned immediately.
2023-10-17 14:49:49 +09:00
..
test_bad_locking.rs workspace: load working copy implementation dynamically 2023-10-16 22:33:44 -07:00
test_commit_builder.rs
test_commit_concurrent.rs
test_conflicts.rs
test_default_revset_graph_iterator.rs test: use test backend in most remaining tests too 2023-09-24 21:24:01 -07:00
test_diff_summary.rs test: use test backend in most remaining tests too 2023-09-24 21:24:01 -07:00
test_git.rs git: on import_refs(), don't abandon ancestors of newly fetched refs 2023-10-17 14:49:49 +09:00
test_id_prefix.rs
test_index.rs test: use test backend in most remaining tests too 2023-09-24 21:24:01 -07:00
test_init.rs
test_load_repo.rs test: use test backend in most remaining tests too 2023-09-24 21:24:01 -07:00
test_local_working_copy.rs working copy: pass commit instead of tree into check_out() 2023-10-16 22:33:44 -07:00
test_local_working_copy_concurrent.rs workspace: load working copy implementation dynamically 2023-10-16 22:33:44 -07:00
test_local_working_copy_sparse.rs working copy: pass commit instead of tree into check_out() 2023-10-16 22:33:44 -07:00
test_merge_trees.rs test: use test backend in most remaining tests too 2023-09-24 21:24:01 -07:00
test_merged_tree.rs tree: simplify conflict before resolving at hunk level 2023-09-27 22:14:39 -07:00
test_mut_repo.rs view: add tracking state to RemoteRef 2023-10-16 23:21:05 +09:00
test_operations.rs
test_refs.rs
test_revset.rs view: add tracking state to RemoteRef 2023-10-16 23:21:05 +09:00
test_rewrite.rs view: add tracking state to RemoteRef 2023-10-16 23:21:05 +09:00
test_view.rs view: add tracking state to RemoteRef 2023-10-16 23:21:05 +09:00
test_workspace.rs workspace: make working-copy type customizable 2023-10-16 22:33:44 -07:00