ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/tests
Martin von Zweigbergk 0aa738a518 view: add support for conflicting git refs in the model
This adds support for having conflicting git refs in the view, but we
never create conflicts yet. The `git_refs()` revset includes all "add"
sides of any conflicts. Similarly `origin/main` (for example) resolves
to all "adds" if it's conflicted (meaning that `jj co origin/main` and
many other commands will error out if `origin/main` is
conflicted). The `git_refs` template renders the reference for all
"adds" and adds a "?" as suffix for conflicted refs.

The reason I'm adding this now is not because it's high priority on
its own (it's likely extremely uncommon to run two concurrent `jj git
refresh` and *also* update refs in the underlying git repo at the same
time) but because it's a building block for the branch support I've
planned (issue #21).
2021-07-24 19:01:56 -07:00
..
test_bad_locking.rs RepoLoader: stop returning Result since the functions cannot currently fail 2021-05-19 14:12:54 -07:00
test_commit_builder.rs tree: support filtering diff by matcher 2021-06-09 16:26:58 -07:00
test_commit_concurrent.rs cleanup: let Clippy fix a bunch of warnings 2021-06-14 00:27:31 -07:00
test_diff_summary.rs cleanup: let Clippy fix a bunch of warnings 2021-06-14 00:27:31 -07:00
test_evolution.rs cleanup: add explicit import of assert_matches, as required by new rustc 2021-07-24 10:48:52 -07:00
test_git.rs view: add support for conflicting git refs in the model 2021-07-24 19:01:56 -07:00
test_index.rs cleanup: let Clippy fix a bunch of warnings 2021-06-14 00:27:31 -07:00
test_init.rs cli: on init, give a proper error message instead crashing when repo exists 2021-05-19 14:53:37 -07:00
test_load_repo.rs cleanup: let Clippy fix a bunch of warnings 2021-06-14 00:27:31 -07:00
test_merge_trees.rs cleanup: let Clippy fix a bunch of warnings 2021-06-14 00:27:31 -07:00
test_mut_repo.rs view: add support for conflicting git refs in the model 2021-07-24 19:01:56 -07:00
test_operations.rs RepoLoader: stop returning Result since the functions cannot currently fail 2021-05-19 14:12:54 -07:00
test_revset.rs view: add support for conflicting git refs in the model 2021-07-24 19:01:56 -07:00
test_revset_graph_iterator.rs cleanup: remove some Vec<_> annotations, mostly by using collect_vec() 2021-06-09 14:21:57 -07:00
test_view.rs
test_working_copy.rs cleanup: let Clippy fix a bunch of warnings 2021-06-14 00:27:31 -07:00
test_working_copy_concurrent.rs repo_path: rename from() to from_internal_{,dir}_string() 2021-05-19 15:11:04 -07:00