jj/tests
Aleksandr Mikhailov e7077909c1 cli: fix jj squash on empty commit
Fixes #787
If `jj squash` is run on an empty commit, it fails with "Error: No changes selected"

With this change such squash command will behave like `jj abandon`.
2023-01-26 11:37:20 +01:00
..
common tests: make fake editor scripts initially empty 2023-01-25 21:58:38 -08:00
test_abandon_command.rs Make jj abandon print each abandoned commit once 2023-01-17 21:17:27 -08:00
test_alias.rs repo: add workaround for shortest prefix calculation of root ids 2023-01-22 12:03:08 +09:00
test_branch_command.rs feat(branch): support jj branch forget --glob 2022-12-10 16:51:10 -08:00
test_cat_command.rs cli: rename print to cat 2023-01-18 10:10:02 -08:00
test_checkout.rs cli: make short_commit_description() compatible with default summary template 2023-01-16 11:53:35 +09:00
test_commit_command.rs cli: include diff summary in commit/describe editor content 2022-12-23 00:47:22 +09:00
test_commit_template.rs repo: add workaround for shortest prefix calculation of root ids 2023-01-22 12:03:08 +09:00
test_concurrent_operations.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_config_command.rs Add a config edit command to open jj config in editor 2023-01-12 01:10:07 -06:00
test_debug_command.rs Add "jj debug config-schema" command to output JSON schema 2023-01-03 22:02:25 -06:00
test_describe_command.rs tests: use insta to test editor contents 2022-12-23 00:47:22 +09:00
test_diff_command.rs cli: allow multiple diff outputs 2022-12-15 11:41:42 +09:00
test_diffedit_command.rs tests: make fake editor scripts initially empty 2023-01-25 21:58:38 -08:00
test_duplicate_command.rs jj duplicate: Allow duplicating several commits at once 2023-01-17 21:17:27 -08:00
test_edit_command.rs repo: propagate error when current working-copy commit is not found 2023-01-24 12:20:28 -08:00
test_git_clone.rs cli: on clone, turn local git remote to absolute path 2022-12-07 14:14:31 +09:00
test_git_colocated.rs revset: ignore valid commit ids unknown to jj 2023-01-14 18:29:35 +01:00
test_git_export.rs cli: hint about how to recover from failed export of branches 2022-11-28 19:54:31 -08:00
test_git_push.rs backend: make random ChangeId fully random, remove UUID mask bits 2023-01-14 14:37:45 +09:00
test_git_remotes.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
test_gitignores.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
test_global_opts.rs formatter: don't write escape codes until we write text 2023-01-13 21:47:50 -08:00
test_init_command.rs templater: fix id of brackets-prefix format to respect total length 2023-01-19 16:41:50 +09:00
test_interdiff_command.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
test_log_command.rs repo: add workaround for shortest prefix calculation of root ids 2023-01-22 12:03:08 +09:00
test_move_command.rs tests: make fake editor scripts initially empty 2023-01-25 21:58:38 -08:00
test_new_command.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_obslog_command.rs test_obslog_command.rs: stop removing change ids 2023-01-25 22:07:07 -08:00
test_operations.rs jj op log: Show durations with relative timestamps 2023-01-07 12:08:00 -08:00
test_rebase_command.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_resolve_command.rs formatter: don't write escape codes until we write text 2023-01-13 21:47:50 -08:00
test_restore_command.rs cmd: Remove the -i option to jj restore. 2022-12-21 08:15:06 -08:00
test_revset_output.rs repo: add workaround for shortest prefix calculation of root ids 2023-01-22 12:03:08 +09:00
test_show_command.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
test_sparse_command.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
test_split_command.rs cli: rephrase diff summary header so it can be reused for commit/describe 2022-12-23 00:47:22 +09:00
test_squash_command.rs cli: fix jj squash on empty commit 2023-01-26 11:37:20 +01:00
test_status_command.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_templater.rs jj log: Change conflicted branches from br? to br?? 2023-01-09 22:44:45 -08:00
test_undo.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
test_unsquash_command.rs tests: make fake editor scripts initially empty 2023-01-25 21:58:38 -08:00
test_untrack_command.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
test_workspaces.rs cleanup: update more "checkout" to "working-copy commit" and similar 2023-01-25 11:02:59 -08:00