ok/jj
1
0
Fork 0
forked from mirrors/jj
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
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
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
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
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
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