jj/lib/tests
Martin von Zweigbergk f4499aa65e conflicts: fix bug when modifying modify/delete conflicts
Currently, if the user modifies a modify/delete conflict, we always
consider the result resolved. That happens because we materialize the
missing side of the conflict as an empty string but when we parse the
conflict, we expect only the number of sides in the input
conflict. For example, if the input is a regular modify/delete
conflict with one remove and one add, the materialized markers will
have one remove and two adds (one of them empty), but when we try to
parse it, we expect one remove and only one add. When we fail to parse
it, we consider it resolved.

This commit fixes the bug by using
`conflicts::Conflict<Option<TreeValue>>` and keeping track of which
sides were supposed to be empty. We could have fixed the bug without
switching to `conflicts::Conflict`, but we want to switch anyway, and
the fix happens naturally when switching.
2023-06-04 06:48:34 -07: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 git_backend: return timestamps for what was actually written 2023-05-12 15:20:44 -07:00
test_commit_concurrent.rs dag_walk: rename bfs() to dfs() because it's depth-first 2023-06-04 11:47:49 +09:00
test_conflicts.rs conflicts: fix bug when modifying modify/delete conflicts 2023-06-04 06:48:34 -07:00
test_default_revset_graph_iterator.rs index: pass only CompositeIndex to default_revset_engine::evaluate() 2023-05-29 08:15:40 +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_backend: on read_commit(), bulk-update extra metadata table of ancestors 2023-05-21 08:29:00 +09:00
test_id_prefix.rs id_prefix: remove repo field from IdPrefixContext 2023-05-11 23:41:24 -07:00
test_index.rs index: implement Index for CompositeIndex 2023-05-29 08:15:40 +09:00
test_init.rs backend: replace git_repo() by as_any() 2023-05-12 08:05:09 -07: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 tree: add test of merge of executable bit 2023-05-24 22:00:38 -07: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: use different errors for ambiguous commit/change IDs 2023-05-31 06:28:32 -07: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 tree_builder: do not omit file entry which was previously a directory 2023-06-01 09:38:06 +09:00
test_working_copy_concurrent.rs cleanup: leverage scoped thread in tests 2023-05-21 21:02:58 +09: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