ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/tests
Martin von Zweigbergk 33bf6ce1d5 view: don't force commits pointed to by refs to be current heads
If you rewrite a commit that's also available on some remote, you'll
currently see both the old version and the new version in the view,
which means they're divergent. They're not logically divergent (the
rewritten version should replace the old version), so this is a UX
bug. I think it indicates that the set of current heads should be
redefined to be the *desired* heads. That's also what I had suspected
in the TODO removed by this change.  I think another indication that
we should hide the old heads even if they have e.g. a remote branch
pointing to them is that we don't want them to be rebased if we
rewrite an ancestor.

So that's what I decided to do: let the view's heads be the desired
heads. The user can still define revsets for showing non-current
commits pointed to by e.g. remote branches.
2021-10-23 09:15:05 -07:00
..
test_bad_locking.rs
test_commit_builder.rs evolution: don't create pruned commits (#32) 2021-10-06 23:20:23 -07:00
test_commit_concurrent.rs
test_conflicts.rs conflicts: work around rust-lang/rust#89716 2021-10-13 13:41:09 -07:00
test_diff_summary.rs
test_git.rs git: don't update public heads for now 2021-10-20 14:23:58 -07:00
test_index.rs MutableRepo: accept just CommitId instead of whole Commit where possible 2021-09-29 10:13:32 -07:00
test_init.rs
test_load_repo.rs MutableRepo: accept just CommitId instead of whole Commit where possible 2021-09-29 10:13:32 -07:00
test_merge_trees.rs trees: try to resolve file conflicts after simplifying conflicts 2021-10-22 09:20:50 -07:00
test_mut_repo.rs view: don't force commits pointed to by refs to be current heads 2021-10-23 09:15:05 -07:00
test_operations.rs evolution: delete it now that we don't use it anymore (#32) 2021-10-06 23:28:30 -07:00
test_refs.rs
test_revset.rs view: don't force commits pointed to by refs to be current heads 2021-10-23 09:15:05 -07:00
test_revset_graph_iterator.rs
test_rewrite.rs view: don't force commits pointed to by refs to be current heads 2021-10-23 09:15:05 -07:00
test_view.rs tests: update a test to not point a branch to an unreachable commit 2021-10-02 23:08:45 -07:00
test_working_copy.rs
test_working_copy_concurrent.rs