diff --git a/cli/src/config/colors.toml b/cli/src/config/colors.toml index 2c7a453347..57831a56c8 100644 --- a/cli/src/config/colors.toml +++ b/cli/src/config/colors.toml @@ -29,7 +29,7 @@ "bookmarks" = "magenta" "local_bookmarks" = "magenta" "remote_bookmarks" = "magenta" -# TODO: Remove in jj 0.28+ +# TODO: Remove *branch* in jj 0.28+ "branch" = "magenta" "branches" = "magenta" "local_branches" = "magenta" @@ -57,6 +57,11 @@ "working_copy email" = "yellow" "working_copy timestamp" = "bright cyan" "working_copy working_copies" = "bright green" +"working_copy bookmark" = "bright magenta" +"working_copy bookmarks" = "bright magenta" +"working_copy local_bookmarks" = "bright magenta" +"working_copy remote_bookmarks" = "bright magenta" +# TODO: Remove *branch* in jj 0.28+ "working_copy branch" = "bright magenta" "working_copy branches" = "bright magenta" "working_copy local_branches" = "bright magenta" diff --git a/cli/tests/test_commit_template.rs b/cli/tests/test_commit_template.rs index c597665833..7d427149be 100644 --- a/cli/tests/test_commit_template.rs +++ b/cli/tests/test_commit_template.rs @@ -198,23 +198,23 @@ fn test_log_default() { // Color let stdout = test_env.jj_cmd_success(&repo_path, &["log", "--color=always"]); - insta::assert_snapshot!(stdout, @r###" - @ kkmpptxz test.user@example.com 2001-02-03 08:05:09 my-bookmark bac9ff9e + insta::assert_snapshot!(stdout, @r#" + @ kkmpptxz test.user@example.com 2001-02-03 08:05:09 my-bookmark bac9ff9e │ (empty) description 1 ○ qpvuntsm test.user@example.com 2001-02-03 08:05:08 aa2015d7 │ add a file ◆ zzzzzzzz root() 00000000 - "###); + "#); // Color without graph let stdout = test_env.jj_cmd_success(&repo_path, &["log", "--color=always", "--no-graph"]); - insta::assert_snapshot!(stdout, @r###" - kkmpptxz test.user@example.com 2001-02-03 08:05:09 my-bookmark bac9ff9e + insta::assert_snapshot!(stdout, @r#" + kkmpptxz test.user@example.com 2001-02-03 08:05:09 my-bookmark bac9ff9e (empty) description 1 qpvuntsm test.user@example.com 2001-02-03 08:05:08 aa2015d7 add a file zzzzzzzz root() 00000000 - "###); + "#); } #[test] @@ -310,22 +310,22 @@ fn test_log_builtin_templates_colored() { ); test_env.jj_cmd_ok(&repo_path, &["bookmark", "create", "my-bookmark"]); - insta::assert_snapshot!(render(r#"builtin_log_oneline"#), @r###" - @ rlvkpnrz (no email set) 2001-02-03 08:05:08 my-bookmark dc315397 (empty) (no description set) + insta::assert_snapshot!(render(r#"builtin_log_oneline"#), @r#" + @ rlvkpnrz (no email set) 2001-02-03 08:05:08 my-bookmark dc315397 (empty) (no description set) ○ qpvuntsm test.user 2001-02-03 08:05:07 230dd059 (empty) (no description set) ◆ zzzzzzzz root() 00000000 - "###); + "#); - insta::assert_snapshot!(render(r#"builtin_log_compact"#), @r###" - @ rlvkpnrz (no email set) 2001-02-03 08:05:08 my-bookmark dc315397 + insta::assert_snapshot!(render(r#"builtin_log_compact"#), @r#" + @ rlvkpnrz (no email set) 2001-02-03 08:05:08 my-bookmark dc315397 │ (empty) (no description set) ○ qpvuntsm test.user@example.com 2001-02-03 08:05:07 230dd059 │ (empty) (no description set) ◆ zzzzzzzz root() 00000000 - "###); + "#); - insta::assert_snapshot!(render(r#"builtin_log_comfortable"#), @r###" - @ rlvkpnrz (no email set) 2001-02-03 08:05:08 my-bookmark dc315397 + insta::assert_snapshot!(render(r#"builtin_log_comfortable"#), @r#" + @ rlvkpnrz (no email set) 2001-02-03 08:05:08 my-bookmark dc315397 │ (empty) (no description set) │ ○ qpvuntsm test.user@example.com 2001-02-03 08:05:07 230dd059 @@ -333,7 +333,7 @@ fn test_log_builtin_templates_colored() { │ ◆ zzzzzzzz root() 00000000 - "###); + "#); insta::assert_snapshot!(render(r#"builtin_log_detailed"#), @r###" @ Commit ID: dc31539712c7294d1d712cec63cef4504b94ca74 @@ -379,22 +379,22 @@ fn test_log_builtin_templates_colored_debug() { ); test_env.jj_cmd_ok(&repo_path, &["bookmark", "create", "my-bookmark"]); - insta::assert_snapshot!(render(r#"builtin_log_oneline"#), @r###" - <> <><><><><><><><><><><><><><><><> + insta::assert_snapshot!(render(r#"builtin_log_oneline"#), @r#" + <> <><><><><><><><><><><><><><><><> <> <><><><><><><><><><><><><><> <> <><><><><><><><> - "###); + "#); - insta::assert_snapshot!(render(r#"builtin_log_compact"#), @r###" - <> <><><><><><><><><><><><> + insta::assert_snapshot!(render(r#"builtin_log_compact"#), @r#" + <> <><><><><><><><><><><><> │ <><><><> <> <><><><><><><><><><> │ <><><><> <> <><><><><><><><> - "###); + "#); - insta::assert_snapshot!(render(r#"builtin_log_comfortable"#), @r###" - <> <><><><><><><><><><><><> + insta::assert_snapshot!(render(r#"builtin_log_comfortable"#), @r#" + <> <><><><><><><><><><><><> │ <><><><> │ <> <> <><><><><><><><><><> @@ -402,7 +402,7 @@ fn test_log_builtin_templates_colored_debug() { │ <> <> <><><><><><><><> <> - "###); + "#); insta::assert_snapshot!(render(r#"builtin_log_detailed"#), @r###" <> <><><>