ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/tests
Yuya Nishihara 8b00a64ab2 cli: load revset aliases from config file
Aliases are loaded at WorkspaceCommandHelper::new() as it's easier to warn
invalid declarations there. Not all commands use revsets, but many do, so
I think it's okay to always pay the loading cost. Parsing the declaration
part (i.e. a symbol) should be fast anyway.

The nested error message isn't super readable, but seems good enough.

Config syntax to bikeshed:
- naming: [revset-alias] vs [revset-aliases] ?
- function alias will need quotes: 'f(x)' = 'x'
2022-11-27 20:12:22 +09:00
..
common
test_alias.rs
test_branch_command.rs
test_checkout.rs
test_commit_command.rs Fix some cargo +nightly clippy warnings 2022-11-24 20:29:17 -08:00
test_concurrent_operations.rs tests: use snapshot testing for operation log 2022-11-24 16:00:20 -10:00
test_describe_command.rs
test_diff_command.rs
test_edit_command.rs
test_git_clone.rs
test_git_colocated.rs cli: when export to git fails, report failed branches 2022-11-26 06:05:29 -10:00
test_git_export.rs cli: when export to git fails, report failed branches 2022-11-26 06:05:29 -10:00
test_git_push.rs
test_git_remotes.rs
test_gitignores.rs
test_global_opts.rs
test_init_command.rs
test_interdiff_command.rs
test_log_command.rs feature: support relative timestamps as a config option 2022-11-27 08:35:17 +10:00
test_move_command.rs
test_new_command.rs
test_obslog_command.rs
test_operations.rs tests: use snapshot testing for operation log 2022-11-24 16:00:20 -10:00
test_print_command.rs
test_rebase_command.rs
test_restore_command.rs
test_revset_output.rs cli: load revset aliases from config file 2022-11-27 20:12:22 +09:00
test_show_command.rs feature: support relative timestamps as a config option 2022-11-27 08:35:17 +10:00
test_sparse_command.rs
test_split_command.rs Test split commit message 2022-11-24 20:29:17 -08:00
test_squash_command.rs
test_templater.rs
test_touchup_command.rs
test_undo.rs
test_unsquash_command.rs
test_untrack_command.rs
test_workspaces.rs