ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/tests
Martin von Zweigbergk e384f97b20 transaction: check that we haven't forgotten to rebase descendants (#111)
If we have recorded in `MutableRepo` that commits have been abandoned
or rewritten, we should always rebase descendants before committing
the transaction (otherwise there's no reason to record the
rewrites). That's not much of a risk in the CLI because we already
have that logic in a central place there (`finish_transaction()`), but
other users of the library crate could easily miss it. Perhaps we
should automatically do any necessary rebasing we commit the
transaction in the library crate instead, but for now let's just have
a check for that to catch such bugs.
2022-03-26 22:31:49 -07:00
..
test_bad_locking.rs tests: rename init_repo() to init_workspace() 2022-02-05 13:02:19 -08:00
test_commit_builder.rs transaction: check that we haven't forgotten to rebase descendants (#111) 2022-03-26 22:31:49 -07:00
test_commit_concurrent.rs tests: rename init_repo() to init_workspace() 2022-02-05 13:02:19 -08:00
test_conflicts.rs tests: don't create workspaces in conflict tests 2022-02-05 15:39:03 -08:00
test_diff_summary.rs tests: don't create workspaces in diff-summary tests 2022-02-05 15:31:09 -08:00
test_git.rs tests: don't create workspaces in git tests 2022-02-05 13:45:41 -08:00
test_index.rs tests: don't create workspaces in index tests 2022-02-05 13:45:41 -08:00
test_init.rs cargo: upgrade the config crate from 0.11.0 to 0.12.0 2022-03-18 22:33:04 -07:00
test_load_repo.rs tests: don't create workspaces in repo-loading tests 2022-02-05 13:47:48 -08:00
test_merge_trees.rs transaction: check that we haven't forgotten to rebase descendants (#111) 2022-03-26 22:31:49 -07:00
test_mut_repo.rs repo: don't abandon empty commit if it has descendants 2022-03-26 21:11:42 -07:00
test_operations.rs transaction: check that we haven't forgotten to rebase descendants (#111) 2022-03-26 22:31:49 -07:00
test_refs.rs tests: rename init_repo() to init_workspace() 2022-02-05 13:02:19 -08:00
test_revset.rs tests: remove a leftover removal of a checkout in a revset test 2022-02-05 20:11:50 -08:00
test_revset_graph_iterator.rs tests: don't create workspaces in RevsetGraphIterator tests 2022-02-05 15:30:27 -08:00
test_rewrite.rs tests: don't create workspaces in rewrite tests 2022-02-05 15:02:10 -08:00
test_view.rs tests: attempt to de-flake operation-merging test 2022-02-09 11:15:10 -08:00
test_working_copy.rs working_copy: let caller pass in base Git ignores (#65, #87) 2022-03-12 10:48:06 -08:00
test_working_copy_concurrent.rs working_copy: let caller pass in base Git ignores (#65, #87) 2022-03-12 10:48:06 -08:00
test_workspace.rs tests: rename init_repo() to init_workspace() 2022-02-05 13:02:19 -08:00