jj/tests
Yuya Nishihara c52efd9df3 templater: add fill(width, content) function
The parameter order follows indent()/label() functions, but this might be
a bad idea because fill() is more likely to have optional parameters. We can
instead add template.fill(width) method as well as .indent(prefix). If we take
this approach, we'll probably need to add string.fill()/indent() methods,
and/or implicit cast at method resolution. The good thing about the method
syntax is that we can add string.refill(), etc. for free, without inventing
generic labeled template functions.

For #1043, I think it's better to add a config like ui.log-word-wrap = true.
We could add term_width/graph_width keywords to the templater, but the
implementation would be more complicated, and is difficult to use for the
basic use case. Unlike Mercurial, our templater doesn't have a context map
to override the graph_width stub.
2023-03-10 16:07:55 +09:00
..
common Implement "config set" subcommand 2023-02-28 18:18:02 -08:00
test_abandon_command.rs cli: switch default graph style to be Sapling's curved style 2023-02-12 07:23:29 -08:00
test_alias.rs templater: use reverse-alphabet hex for change ids 2023-02-13 22:49:21 -08:00
test_branch_command.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_cat_command.rs cli: rename print to cat 2023-01-18 10:10:02 -08:00
test_checkout.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_commit_command.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_commit_template.rs templater: add "parent_commit_ids" keyword 2023-03-07 11:33:15 +09:00
test_concurrent_operations.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_config_command.rs Implement "config set" subcommand 2023-02-28 18:18:02 -08: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: pass string instead of bytes to add_config() 2023-01-26 12:48:30 -08:00
test_diff_command.rs templater: do not complete "(no commit description)" by default 2023-02-01 16:13:43 +09:00
test_diffedit_command.rs tests: make fake editor scripts initially empty 2023-01-25 21:58:38 -08:00
test_duplicate_command.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_edit_command.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09: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 templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_git_fetch.rs git: only consider references matching globs when fetching 2023-03-02 10:09:08 +01:00
test_git_import_export.rs git: add git.auto-local-branch 2023-01-29 20:17:49 -08:00
test_git_push.rs git push: do not consider @- if @ has non-empty content or description 2023-03-05 23:50:20 +01: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 repo: propagate error when failing to look up backend type 2023-02-27 09:44:28 -08:00
test_init_command.rs templater: use reverse-alphabet hex for change ids 2023-02-13 22:49:21 -08: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 templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_move_command.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_new_command.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_obslog_command.rs conflicts: replace missing files by empty in materialized conflict 2023-02-17 22:19:04 -08:00
test_operations.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_rebase_command.rs cmd: Allow multiple -b for jj rebase 2023-02-20 00:36:32 -08:00
test_resolve_command.rs conflicts: preserve order of adds in materialized conflict 2023-02-18 22:01:25 -08:00
test_restore_command.rs cmd: Make jj restore work if @ is a merge commit 2023-02-19 22:55:53 -08:00
test_revset_output.rs templater: use reverse-alphabet hex for change ids 2023-02-13 22:49:21 -08:00
test_show_command.rs cli: in "show" template, indent description like Git does 2023-03-04 12:10:53 +09: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 templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_squash_command.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +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 templater: add fill(width, content) function 2023-03-10 16:07:55 +09:00
test_undo.rs cli: switch default graph style to be Sapling's curved style 2023-02-12 07:23:29 -08:00
test_unsquash_command.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
test_untrack_command.rs tests: pass string instead of bytes to add_config() 2023-01-26 12:48:30 -08:00
test_workspaces.rs templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00