ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/tests
Martin von Zweigbergk ce094c618b repo: propagate error when current working-copy commit is not found
This should fix the panic in the case reported in #1107. It's a bit
hard to reproduce because we normally notice the missing commit when
we snapshot the working copy, but it's possible to reproduce it using
`--no-commit-working-copy`.

I suspect the added test is too brittle because it checks the exact
error message. On the other hand, it might be useful to have one test
case like this so we catch accidental changes in the format.
2023-01-24 12:20:28 -08:00
..
common style: make normalize_output() take a &str instead of a String 2023-01-24 15:33:49 +01: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 run_merge_tool, edit_diff: Print command args with -v instead of errors 2023-01-12 23:07:59 -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: use insta to test editor contents 2022-12-23 00:47:22 +09: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 templater: fix id of brackets-prefix format to respect total length 2023-01-19 16:41:50 +09: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 tests: use insta to test editor contents 2022-12-23 00:47:22 +09: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 jj log: Change conflicted branches from br? to br?? 2023-01-09 22:44:45 -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 workspace: add a root subcommand to print the workspace root path 2023-01-24 16:53:54 +01:00