jj/cli/tests
Martin von Zweigbergk 15b0225547 tests: test attempt to create identical commits
We currently don't allow you to create two identical commits. It
results in an internal error. I think we need to allow it. Let's start
by testing the current behavior.

I created these as CLI tests because I want to make sure that `evolog`
and `op diff` get tested, including rendering.
2025-10-27 16:35:47 +00:00
..
common tests: allow overriding $JJ_TIMESTAMP and $JJ_RANDOMNESS_SEED in tests 2025-10-27 16:35:47 +00:00
sample-configs files, tree: make same-change conflict resolution configurable 2025-09-11 13:14:28 +00:00
cli-reference@.md.snap metaedit: replace --update-committer-timestamp with --force-rewrite 2025-10-25 22:31:16 +00:00
datatest_config_schema.rs tests: use jsonschema directly instead of taplo(1) 2025-08-08 16:19:30 +00:00
datatest_runner.rs tests: use jsonschema directly instead of taplo(1) 2025-08-08 16:19:30 +00:00
runner.rs tests: test attempt to create identical commits 2025-10-27 16:35:47 +00:00
test_abandon_command.rs tests: do not use "jj undo" to run multiple tests with the same setup 2025-08-26 00:27:29 +00:00
test_absorb_command.rs cli: evolog: migrate to evolution template type 2025-08-21 13:35:21 +00:00
test_acls.rs tests: port test_acls.rs to TestWorkDir API 2025-03-12 02:18:56 +00:00
test_advance_bookmarks.rs tests: port test_advance_bookmarks.rs to TestWorkDir API 2025-03-12 02:18:56 +00:00
test_alias.rs git: write change-id header by default 2025-05-08 23:05:38 +00:00
test_bisect_command.rs bisect: deprecate --command <cmd> in favor of -- <cmd> <args>... 2025-10-12 23:50:50 +00:00
test_bookmark_command.rs cli: bookmark: fix list template to accept absent-tracked remote refs 2025-10-15 01:52:19 +00:00
test_builtin_aliases.rs git: write change-id header by default 2025-05-08 23:05:38 +00:00
test_commit_command.rs tests: do not use "jj undo" to run multiple tests with the same setup 2025-08-26 00:27:29 +00:00
test_commit_template.rs templater: add commit.local/remote_tags() methods for completeness 2025-10-16 15:44:50 +00:00
test_completion.rs cli: restore: provide modified file completion for --changes-in/-c 2025-10-21 21:22:00 +00:00
test_concurrent_operations.rs repo: store commit predecessors in Operation object 2025-05-26 10:23:29 +00:00
test_config_command.rs config: add support for --when.workspaces 2025-10-14 17:50:07 +00:00
test_config_schema.rs tests: compute the schema defaults in Rust rather than using jq(1) 2025-08-08 16:19:30 +00:00
test_copy_detection.rs tests: port test_copy_detection.rs to TestWorkDir API 2025-03-13 16:13:12 +00:00
test_debug_command.rs cli: remove "debug operation"/"view" command in favor of "debug object" 2025-08-27 01:02:40 +00:00
test_debug_init_simple_command.rs lib: rename the LocalBackend to SimpleBackend 2025-03-17 17:17:11 +00:00
test_describe_command.rs describe: ensure --stdin messages get trailing newlines 2025-10-24 12:05:27 +00:00
test_diff_command.rs cli: diff: pass $width parameter to external diff tools 2025-09-16 01:49:21 +00:00
test_diffedit_command.rs tests: do not use "jj undo" to run multiple tests with the same setup 2025-08-26 00:27:29 +00:00
test_duplicate_command.rs tests: do not use "jj undo" to run multiple tests with the same setup 2025-08-26 00:27:29 +00:00
test_edit_command.rs git: write change-id header by default 2025-05-08 23:05:38 +00:00
test_evolog_command.rs template: Add template-aliases.empty_placeholder 2025-10-11 16:44:28 +00:00
test_file_annotate_command.rs annotate: add original line number to template 2025-07-22 20:29:05 +00:00
test_file_chmod_command.rs cli, lib: move to Rust 2024 language edition 2025-07-28 17:05:41 +00:00
test_file_show_command.rs cli: file show: add templating support 2025-08-07 14:52:02 +00:00
test_file_track_untrack_commands.rs tests: port test_file_track_untrack_commands.rs to TestWorkDir API 2025-03-19 14:52:52 +00:00
test_fix_command.rs tests: do not use "jj undo" to run multiple tests with the same setup 2025-08-26 00:27:29 +00:00
test_generate_md_cli_help.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_gerrit_upload.rs gerrit: fix a misplaced comment in test 2025-09-19 07:06:04 +00:00
test_git_clone.rs cli: tests: let TestEnvironment store extra env vars in OsString 2025-10-22 14:46:24 +00:00
test_git_colocated.rs git: export tag changes 2025-10-15 01:31:16 +00:00
test_git_colocation.rs cli: git colocation: fix check for non-main workspace 2025-10-23 01:50:55 +00:00
test_git_fetch.rs cli: add tag set command 2025-10-16 03:03:38 +00:00
test_git_import_export.rs git: export tag changes 2025-10-15 01:31:16 +00:00
test_git_init.rs git init: prefer upstream over origin for trunk() alias 2025-08-17 11:59:17 +00:00
test_git_private_commits.rs git: write change-id header by default 2025-05-08 23:05:38 +00:00
test_git_push.rs cli: git-push: allow pushing new bookmark to tracked remote 2025-10-15 01:52:19 +00:00
test_git_remotes.rs cli: tests: let TestEnvironment store extra env vars in OsString 2025-10-22 14:46:24 +00:00
test_git_root.rs cli: git: add git root command 2025-03-25 08:58:43 +00:00
test_gitignores.rs git: write change-id header by default 2025-05-08 23:05:38 +00:00
test_global_opts.rs codespell: forbid British English 2025-09-07 15:51:44 +00:00
test_help_command.rs cli: help: look up subcommand without using error path 2025-09-05 00:26:12 +00:00
test_identical_commits.rs tests: test attempt to create identical commits 2025-10-27 16:35:47 +00:00
test_immutable_commits.rs cli: test that jj log --ignore-immutable still renders immutable commits 2025-10-22 15:12:14 +00:00
test_interdiff_command.rs cli: include diff of commit descriptions in inter-diff 2025-08-26 00:45:08 +00:00
test_log_command.rs template: Add template-aliases.empty_placeholder 2025-10-11 16:44:28 +00:00
test_metaedit_command.rs metaedit: replace --update-committer-timestamp with --force-rewrite 2025-10-25 22:31:16 +00:00
test_new_command.rs files, tree: make same-change conflict resolution configurable 2025-09-11 13:14:28 +00:00
test_next_prev_commands.rs tests: do not use "jj undo" to run multiple tests with the same setup 2025-08-26 00:27:29 +00:00
test_op_revert_command.rs undo: move or duplicate tests to op revert 2025-08-17 15:05:14 +00:00
test_operations.rs backend: remove MergedTreeId::Legacy variant 2025-10-19 13:14:27 +00:00
test_parallelize_command.rs cli: allow "large" revsets by default 2025-07-11 17:15:26 +00:00
test_rebase_command.rs tests: do not use "jj undo" to run multiple tests with the same setup 2025-08-26 00:27:29 +00:00
test_repo_change_report.rs cli: use more precise wording in conflict resolution hint 2025-05-22 03:49:34 +00:00
test_resolve_command.rs external_merge: pass the repo_path to the merge tool 2025-09-29 01:07:22 +00:00
test_restore_command.rs tests: do not use "jj undo" to run multiple tests with the same setup 2025-08-26 00:27:29 +00:00
test_revert_command.rs tests: get current operation id without running jj 2025-08-26 00:27:29 +00:00
test_revset_output.rs cli bookmark: warn on empty implicit target revision 2025-09-21 10:27:43 +00:00
test_root.rs lib: rename the LocalBackend to SimpleBackend 2025-03-17 17:17:11 +00:00
test_show_command.rs template: Add template-aliases.empty_placeholder 2025-10-11 16:44:28 +00:00
test_sign_unsign_commands.rs git: write change-id header by default 2025-05-08 23:05:38 +00:00
test_simplify_parents_command.rs tests: get current operation id without running jj 2025-08-26 00:27:29 +00:00
test_sparse_command.rs tests: port test_sparse_command.rs to TestWorkDir API 2025-04-03 01:43:02 +00:00
test_split_command.rs tests: do not use "jj undo" to run multiple tests with the same setup 2025-08-26 00:27:29 +00:00
test_squash_command.rs squash: fix -A -B behavior 2025-10-09 15:53:46 +00:00
test_status_command.rs cli, lib: move to Rust 2024 language edition 2025-07-28 17:05:41 +00:00
test_tag_command.rs cli: add tag delete commands 2025-10-16 03:03:38 +00:00
test_templater.rs templater: relax whitespace requirement by leveraging implicit whitespace rule 2025-08-29 10:21:37 +00:00
test_undo_redo_commands.rs undo: hint about jj op restore when trying to undo merge operation 2025-10-14 05:19:46 +00:00
test_util_command.rs cli util: Add the environment variable JJ_WORKSPACE_ROOT 2025-09-25 03:41:12 +00:00
test_working_copy.rs cargo: bump ignore crate to 0.4.24 2025-10-20 17:20:14 +00:00
test_workspaces.rs templates: remove operation timestamp from default evolog template 2025-08-25 05:52:37 +00:00