ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/tests
Martin von Zweigbergk 051c01491c cli: teach obslog an option to show diff
This patch adds `jj obslog -p` for including the diff compared to the
predecessor (the first predecessor if there are several). If the
predecessor's parents are different, then we create a temporary tree
by rebasing the predecessor to have the same parents and we use the
result as base for the diff. That way, we avoid polluting the diff
with the changes caused by the rebase. (I don't think we currently
have any commands that can change both parents and content, so the
diff should always be empty for rewrites caused by a rebase.)

Working on this also reminded me that it'll be really nice when we
replace `jj obslog` by something based on the operation log - I really
miss seeing information about the operation in the output (like `hg
obslog` gets from its obsmarkers).
2022-06-14 04:39:49 -07:00
..
common tests: check exit code on failure, and fix a bug in argument parsing 2022-05-10 04:02:24 -07:00
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_concurrent_operations.rs cli: show placeholder text for empty commit message 2022-05-18 09:16:04 -07:00
test_describe_command.rs cli: respect $VISUAL, overriding $EDITOR 2022-05-10 10:39:59 -07:00
test_diff_command.rs tests: add tests for jj diff 2022-04-02 14:22:58 -07:00
test_edit_command.rs cli: make jj branch take subcommands, not flags 2022-06-06 09:02:56 -07: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: don't say "Creating branch push-*" if it already exists 2022-06-10 09:30:55 -07:00
test_git_remotes.rs cli: add a command for listing git remotes and their URLs 2022-04-29 14:08:24 -07:00
test_gitignores.rs tests: move testutils from src/ to tests/ 2022-04-02 14:22:58 -07:00
test_global_opts.rs cli: parse --color option and reconfigure ui 2022-06-10 12:47:06 +09: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 graphlog: don't de-indent multi-line text at end of chain 2022-05-11 04:42:44 -07:00
test_print_command.rs tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00
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 tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00
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: make jj branch take subcommands, not flags 2022-06-06 09:02:56 -07: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: make jj branch take subcommands, not flags 2022-06-06 09:02:56 -07:00
test_untrack_command.rs tests: check exit code on failure, and fix a bug in argument parsing 2022-05-10 04:02:24 -07:00
test_workspaces.rs cli: make move/squash/unsquash keep empty working-copy commit 2022-05-30 07:52:24 -07:00