jj/tests
Martin von Zweigbergk 3e79eacaf7 cli: snapshot working copy even on e.g. jj diff -r <some hash>
I was initially worried about the cost of always snapshotting the
working copy, so that's why e.g. `jj diff -r <some hash>` doesn't do
it. However, there's been a few caused by missing snapshotting, and
there are still a few (I just noticed it in `jj undo` while writing
this patch). Let's always do the snapshotting and if the user really
doesn't want it, they can pass `--no-commit-working-copy` (which we
should probably rename to `--no-snapshot-working-copy` or maybe just
`--no-snapshot`). That should reduce bugs and make the CLI more
predictable.

Two test cases were affected becasue `jj merge` also didn't snapshot
the working copy.

Before this patch, e.g. `jj co --no-commit-working-copy` would error
out, but now it will succeed (without touching the working copy,
leaving the working copy stale). That may be confusing, but it should
be easy to recover from (e.g. by `jj undo`). We can consider adding a
check for it later if it seems too confusing (it's probably rarely
something the user wanted).
2022-07-29 22:06:53 +02:00
..
common
smoke_test.rs cli: show placeholder text for empty commit message 2022-05-18 09:16:04 -07:00
test_alias.rs cli: make jj branch take subcommands, not flags 2022-06-06 09:02:56 -07:00
test_branch_command.rs cli: make jj branch take subcommands, not flags 2022-06-06 09:02:56 -07:00
test_checkout.rs cli: add config for using only new UX for open commits 2022-07-01 08:58:08 +08:00
test_concurrent_operations.rs cli: show placeholder text for empty commit message 2022-05-18 09:16:04 -07:00
test_describe_command.rs
test_diff_command.rs diff: make sure word diff print final newline 2022-07-07 23:29:18 +09:00
test_edit_command.rs cli: add jj edit for editing a commit in the wokring copy 2022-07-01 08:58:08 +08:00
test_git_clone.rs cli: check that clone target is an empty dir if it exists 2022-07-01 09:03:24 +08:00
test_git_colocated.rs cli: make jj branch take subcommands, not flags 2022-06-06 09:02:56 -07:00
test_git_push.rs cli: push only branches pointing to @ by default 2022-07-13 16:23:13 -07:00
test_git_remotes.rs
test_gitignores.rs
test_global_opts.rs cli: rename jj edit to jj touchup 2022-07-01 08:58:08 +08:00
test_init_command.rs cli: show placeholder text for empty commit message 2022-05-18 09:16:04 -07:00
test_log_command.rs cli: show placeholder text for empty commit message 2022-05-18 09:16:04 -07:00
test_move_command.rs cli: make jj branch take subcommands, not flags 2022-06-06 09:02:56 -07:00
test_new.rs checkout: don't abandon old commit if it has non-empty description 2022-05-21 22:12:15 -07:00
test_obslog_command.rs cli: teach obslog an option to show diff 2022-06-14 04:39:49 -07:00
test_operations.rs
test_print_command.rs
test_rebase_command.rs cli: make jj branch take subcommands, not flags 2022-06-06 09:02:56 -07:00
test_restore_command.rs cli: show placeholder text for empty commit message 2022-05-18 09:16:04 -07:00
test_sparse_command.rs
test_split_command.rs cli: show placeholder text for empty commit message 2022-05-18 09:16:04 -07:00
test_squash_command.rs cli: snapshot working copy even on e.g. jj diff -r <some hash> 2022-07-29 22:06:53 +02:00
test_touchup_command.rs cli: rename jj edit to jj touchup 2022-07-01 08:58:08 +08:00
test_undo.rs cli: show placeholder text for empty commit message 2022-05-18 09:16:04 -07:00
test_unsquash_command.rs cli: snapshot working copy even on e.g. jj diff -r <some hash> 2022-07-29 22:06:53 +02:00
test_untrack_command.rs cli: snapshot working copy even on e.g. jj diff -r <some hash> 2022-07-29 22:06:53 +02:00
test_workspaces.rs cli: make move/squash/unsquash keep empty working-copy commit 2022-05-30 07:52:24 -07:00