ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/tests
Martin von Zweigbergk b8f71a4b30 working_copy: in LockedWorkingCopy::drop(), discard unsaved changes
In `LockedWorkingCopy::drop()`, we panic if the caller had not called
`finish()`. IIRC, the idea was both to find bugs where we forgot to
call `finish()` and to prevent continuing with a modified
`WorkingCopy` instance. I don't think the former has been a problem in
practice. It has been a problem in practice to call `discard()` to
avoid the panic, though. To address that, we can make the `Drop`
implementation discard the changes (forcing a reload of the state if
the working copy is accessed again).
2023-09-01 12:25:47 -07:00
..
test_bad_locking.rs
test_commit_builder.rs store: add a empty_merged_tree_id() helper 2023-08-30 19:58:42 -07:00
test_commit_concurrent.rs
test_conflicts.rs merge: add Merge::num_sides() 2023-08-25 08:54:49 -07:00
test_default_revset_graph_iterator.rs
test_diff_summary.rs tests: make create_tree() return MergedTree 2023-08-29 07:01:52 -07:00
test_git.rs store: add a empty_merged_tree_id() helper 2023-08-30 19:58:42 -07:00
test_id_prefix.rs store: add a empty_merged_tree_id() helper 2023-08-30 19:58:42 -07:00
test_index.rs
test_init.rs store: add a empty_merged_tree_id() helper 2023-08-30 19:58:42 -07:00
test_load_repo.rs
test_merge_trees.rs commit: drop merged_ prefix from tree() and tree_id() 2023-08-29 08:32:04 -07:00
test_merged_tree.rs merged_tree: allow building trees with variable-arity overrides 2023-09-01 06:09:37 -07:00
test_mut_repo.rs store: add a empty_merged_tree_id() helper 2023-08-30 19:58:42 -07:00
test_operations.rs
test_refs.rs conflicts: move Merge<T> to merge module 2023-08-06 22:08:09 +00:00
test_revset.rs store: add a empty_merged_tree_id() helper 2023-08-30 19:58:42 -07:00
test_rewrite.rs commit: drop merged_ prefix from tree() and tree_id() 2023-08-29 08:32:04 -07:00
test_view.rs tests: move commit_transactions() helper to testutils 2023-08-10 06:27:16 +09:00
test_working_copy.rs working_copy: in LockedWorkingCopy::drop(), discard unsaved changes 2023-09-01 12:25:47 -07:00
test_working_copy_concurrent.rs working_copy: in LockedWorkingCopy::drop(), discard unsaved changes 2023-09-01 12:25:47 -07:00
test_working_copy_sparse.rs tests: make create_tree() return MergedTree 2023-08-29 07:01:52 -07:00
test_workspace.rs