jj/cli/tests
Ilya Grigoriev e7618449ec
Some checks are pending
binaries / Build binary artifacts (linux-aarch64-gnu, ubuntu-24.04, aarch64-unknown-linux-gnu) (push) Waiting to run
binaries / Build binary artifacts (linux-aarch64-musl, ubuntu-24.04, aarch64-unknown-linux-musl) (push) Waiting to run
binaries / Build binary artifacts (linux-x86_64-gnu, ubuntu-24.04, x86_64-unknown-linux-gnu) (push) Waiting to run
binaries / Build binary artifacts (linux-x86_64-musl, ubuntu-24.04, x86_64-unknown-linux-musl) (push) Waiting to run
binaries / Build binary artifacts (macos-aarch64, macos-14, aarch64-apple-darwin) (push) Waiting to run
binaries / Build binary artifacts (macos-x86_64, macos-13, x86_64-apple-darwin) (push) Waiting to run
binaries / Build binary artifacts (win-x86_64, windows-2022, x86_64-pc-windows-msvc) (push) Waiting to run
nix / flake check (macos-14) (push) Waiting to run
nix / flake check (ubuntu-latest) (push) Waiting to run
build / build (, macos-13) (push) Waiting to run
build / build (, macos-14) (push) Waiting to run
build / build (, ubuntu-latest) (push) Waiting to run
build / build (, windows-latest) (push) Waiting to run
build / build (--all-features, ubuntu-latest) (push) Waiting to run
build / Build jj-lib without Git support (push) Waiting to run
build / Check protos (push) Waiting to run
build / Check formatting (push) Waiting to run
build / Check that MkDocs can build the docs (push) Waiting to run
build / Check that MkDocs can build the docs with Poetry 1.8 (push) Waiting to run
build / cargo-deny (advisories) (push) Waiting to run
build / cargo-deny (bans licenses sources) (push) Waiting to run
build / Clippy check (push) Waiting to run
Codespell / Codespell (push) Waiting to run
website / prerelease-docs-build-deploy (ubuntu-latest) (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
templates: make op_summary more readable
Added colons to make it seem less like an English sentence, see
https://github.com/martinvonz/jj/pull/4602#discussion_r1791295776

I believe printing both the start and end times is excessive for a
summary. For now, I have it print just the start time for consistency.
I intend to change it to print the ending time later.

I was a bit torn on whether to use `format_timestamp(self.time().start())`
or `self.time().start().ago()`. The latter looks better, but is less
configurable and worse for dates long ago. In the future, we could add a
`format_op_summary_timestamp` function and/or a template function that
uses `.ago()` for recent dates and absolute dates for old dates.
2024-10-13 20:06:03 -07:00
..
common tests: set $COLUMNS when running CLI tests 2024-09-05 08:56:04 -07:00
cli-reference@.md.snap squash: add -f/-t shorthands for --from/--[in]to 2024-10-13 08:04:57 +05:30
runner.rs cli: Explicitly add a Help command to accept the early args after it 2024-10-12 10:17:12 -03:00
test_abandon_command.rs abandon: add --restore-descendants flag 2024-09-24 10:52:06 +02:00
test_acls.rs
test_advance_bookmarks.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_alias.rs bookmark: add "b" alias 2024-09-17 18:24:26 +02:00
test_backout_command.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_bookmark_command.rs bookmarks-list: fix typo 2024-10-07 20:37:14 -04:00
test_builtin_aliases.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_checkout.rs
test_commit_command.rs cli: add --author argument for commit and describe 2024-09-22 12:40:46 +02:00
test_commit_template.rs cli: make default log revset work without working-copy commit 2024-10-01 20:04:06 +09:00
test_concurrent_operations.rs repo: teach OpStore about the root commit id 2024-10-08 13:21:03 +09:00
test_config_command.rs style: avoid using .to_owned()/.to_vec() on owned objects 2024-10-04 22:29:13 +02:00
test_copy_detection.rs
test_debug_command.rs repo: teach OpStore about the root commit id 2024-10-08 13:21:03 +09:00
test_describe_command.rs cli: get author timestamp of description template in consistent way 2024-09-24 07:17:33 +09:00
test_diff_command.rs cli: in color-words diffs, highlight word-level hunks in context lines 2024-10-06 09:45:27 +09:00
test_diffedit_command.rs diffedit: add --restore-descendants flag 2024-09-24 09:30:28 +02:00
test_duplicate_command.rs templates: make op_summary more readable 2024-10-13 20:06:03 -07:00
test_edit_command.rs
test_evolog_command.rs undo: Report what operation has been undone in jj op undo 2024-09-15 14:11:33 +02:00
test_file_chmod_command.rs cli: reorder updating and reporting for consistency. 2024-09-22 15:02:21 +01:00
test_file_show_command.rs tests: rename test_file_print_command.rs to_file_show_command.rs 2024-10-04 20:52:59 +09:00
test_file_track_untrack_commands.rs cli: make paths to auto-track configurable, add jj track 2024-09-09 07:49:55 -07:00
test_fix_command.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_generate_md_cli_help.rs
test_git_clone.rs cli: warn if trunk() alias cannot be resolved, fall back to none() 2024-10-11 09:37:47 +09:00
test_git_colocated.rs templates: make op_summary more readable 2024-10-13 20:06:03 -07:00
test_git_fetch.rs templates: make op_summary more readable 2024-10-13 20:06:03 -07:00
test_git_import_export.rs templates: make op_summary more readable 2024-10-13 20:06:03 -07:00
test_git_init.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_git_private_commits.rs git-push: just say "Changes to push to <REMOTE>" 2024-09-15 07:06:56 +09:00
test_git_push.rs git-push: just say "Changes to push to <REMOTE>" 2024-09-15 07:06:56 +09:00
test_git_remotes.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_git_submodule.rs
test_gitignores.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_global_opts.rs cli: Explicitly add a Help command to accept the early args after it 2024-10-12 10:17:12 -03:00
test_help_command.rs cli: Explicitly add a Help command to accept the early args after it 2024-10-12 10:17:12 -03:00
test_immutable_commits.rs id_prefix: propagate error from disambiguation index 2024-10-09 14:07:48 +09:00
test_init_command.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_interdiff_command.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_log_command.rs id_prefix: propagate error from disambiguation index 2024-10-09 14:07:48 +09:00
test_move_command.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_new_command.rs bookmarks: update some leftover uses of the word "branch" 2024-09-11 19:19:31 -07:00
test_next_prev_commands.rs ui: write prompt messages to stderr 2024-10-07 19:47:18 -04:00
test_operations.rs templates: make op_summary more readable 2024-10-13 20:06:03 -07:00
test_parallelize_command.rs style: add semicolon at the end of expressions used as statements 2024-10-04 22:29:13 +02:00
test_rebase_command.rs templates: make op_summary more readable 2024-10-13 20:06:03 -07:00
test_repo_change_report.rs cli: reorder updating and reporting for consistency. 2024-09-22 15:02:21 +01:00
test_resolve_command.rs cli: reorder updating and reporting for consistency. 2024-09-22 15:02:21 +01:00
test_restore_command.rs restore: add --restore-descendants flag 2024-09-24 14:26:54 +02:00
test_revset_output.rs cli: add pointer to the documentation in case of fileset syntax error 2024-10-04 17:09:43 +02:00
test_root.rs
test_shell_completion.rs
test_show_command.rs cli: color author and commiter names yellow 2024-09-28 23:34:26 -07:00
test_simplify_parents_command.rs simplify-parents: add a command to remove redundant parents 2024-10-07 20:15:33 -04:00
test_sparse_command.rs
test_split_command.rs split: do not prevent all changes from going into the first commit 2024-09-27 13:33:05 +02:00
test_squash_command.rs cli: reorder updating and reporting for consistency. 2024-09-22 15:02:21 +01:00
test_status_command.rs conflicts: Highlight change ids in rebase advice 2024-09-13 12:57:56 +02:00
test_tag_command.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_templater.rs revset, templater: add deprecation warnings 2024-09-23 07:07:07 +09:00
test_undo.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_unsquash_command.rs unsquash: deprecate in favor of squash and diffedit 2024-09-26 16:34:48 +02:00
test_util_command.rs repo: teach OpStore about the root commit id 2024-10-08 13:21:03 +09:00
test_working_copy.rs cli: make paths to auto-track configurable, add jj track 2024-09-09 07:49:55 -07:00
test_workspaces.rs repo: teach OpStore about the root commit id 2024-10-08 13:21:03 +09:00