jj/lib/tests
Kevin Liao 69edc7f2df Update jj edit <commit> to add commit into view heads if not already
`jj new <commit>` automatically adds the checked out commits into the view head ids. However,
`jj edit` does not.

To reproduce:
```
jj git init test
cd test
jj commit -m "my commit"
jj log -r @- -T commit_id # Save the id
jj abandon -r @-
jj edit <saved_id>

jj log -r :: # Does not show the currently editing commit 
```
2024-09-10 11:01:49 -07:00
..
runner.rs merged_tree: remove .diff_summary() 2024-08-06 10:15:44 +09:00
test_bad_locking.rs tests: avoid ReadonlyRepo::repo_path() 2024-09-07 12:20:02 -07:00
test_commit_builder.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_commit_concurrent.rs tests: avoid ReadonlyRepo::repo_path() 2024-09-07 12:20:02 -07:00
test_conflicts.rs conflicts: don't panic when a conflict marker is missing removes 2024-09-05 22:09:55 -07:00
test_default_revset_graph_iterator.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_git.rs tests: avoid ReadonlyRepo::repo_path() 2024-09-07 12:20:02 -07:00
test_git_backend.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_gpg.rs formatting only: switch to Item level import ganularity 2024-08-22 14:52:54 -04:00
test_id_prefix.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_index.rs tests: avoid ReadonlyRepo::repo_path() 2024-09-07 12:20:02 -07:00
test_init.rs repo: remove repo_path from ReadonlyRepo and RepoLoader 2024-09-07 12:20:02 -07:00
test_load_repo.rs tests: avoid ReadonlyRepo::repo_path() 2024-09-07 12:20:02 -07:00
test_local_working_copy.rs workspace: make workspace_root() and repo_path() return slice &Path 2024-09-08 05:40:52 +09:00
test_local_working_copy_concurrent.rs workspace: make workspace_root() and repo_path() return slice &Path 2024-09-08 05:40:52 +09:00
test_local_working_copy_sparse.rs workspace: make workspace_root() and repo_path() return slice &Path 2024-09-08 05:40:52 +09:00
test_merge_trees.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_merged_tree.rs copies: determine copy/rename operation by CopiesTreeDiffStream 2024-08-23 10:29:12 +09:00
test_mut_repo.rs Update jj edit <commit> to add commit into view heads if not already 2024-09-10 11:01:49 -07:00
test_operations.rs tests: avoid ReadonlyRepo::repo_path() 2024-09-07 12:20:02 -07:00
test_refs.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_revset.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_rewrite.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07: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: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_ssh_signing.rs formatting only: switch to Item level import ganularity 2024-08-22 14:52:54 -04:00
test_view.rs transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
test_workspace.rs workspace: make workspace_root() and repo_path() return slice &Path 2024-09-08 05:40:52 +09:00