jj/lib/tests
Scott Taylor 26f5d6150c conflicts: add "git" conflict marker style
Adds a new "git" conflict marker style option. This option matches Git's
"diff3" conflict style, allowing these conflicts to be parsed by some
external tools that don't support JJ-style conflicts. If a conflict has
more than 2 sides, then it falls back to the similar "snapshot" conflict
marker style.

The conflict parsing code now supports parsing Git-style conflict
markers in addition to the normal JJ-style conflict markers, regardless
of the conflict marker style setting. This has the benefit of allowing
the user to switch the conflict marker style while they already have
conflicts checked out, and their old conflicts will still be parsed
correctly.

Example of "git" conflict markers:

```
<<<<<<< Side #1 (Conflict 1 of 1)
fn example(word: String) {
    println!("word is {word}");
||||||| Base
fn example(w: String) {
    println!("word is {w}");
=======
fn example(w: &str) {
    println!("word is {w}");
>>>>>>> Side #2 (Conflict 1 of 1 ends)
}
```
2024-11-23 08:28:47 -06:00
..
runner.rs rewrite: fix duplicated commits to be rebased onto destination 2024-11-21 10:49:51 +09:00
test_annotate.rs annotate: add low-level function to specify starting file content 2024-11-12 08:26:42 +09:00
test_bad_locking.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_commit_builder.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_commit_concurrent.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_conflicts.rs conflicts: add "git" conflict marker style 2024-11-23 08:28:47 -06:00
test_default_revset_graph_iterator.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_git.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_git_backend.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_gpg.rs
test_id_prefix.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_index.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_init.rs repo: remove repo_path from ReadonlyRepo and RepoLoader 2024-09-07 12:20:02 -07:00
test_load_repo.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_local_working_copy.rs conflicts: add "ui.conflict-marker-style" config 2024-11-23 08:28:47 -06:00
test_local_working_copy_concurrent.rs conflicts: add "ui.conflict-marker-style" config 2024-11-23 08:28:47 -06:00
test_local_working_copy_sparse.rs conflicts: add "ui.conflict-marker-style" config 2024-11-23 08:28:47 -06:00
test_merge_trees.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_merged_tree.rs style: add semicolon at the end of expressions used as statements 2024-10-04 22:29:13 +02:00
test_mut_repo.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_operations.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_refs.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_revset.rs revset: allow tags() to take a pattern for an argument 2024-11-20 00:47:23 +00:00
test_rewrite.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_rewrite_duplicate.rs rewrite: fix duplicated commits to be rebased onto destination 2024-11-21 10:49:51 +09:00
test_rewrite_transform.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_signing.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_ssh_signing.rs
test_view.rs transaction: propagate errors from commit() 2024-11-13 23:05:24 -08:00
test_workspace.rs testutils: move default_store_factories() to TestEnvironment 2024-11-02 08:39:02 +09:00