From 6a9b527987dfe25931114424e271d3b877012893 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sun, 21 May 2023 20:46:55 -0700 Subject: [PATCH] tests: test lookup of prefixes from the log output just about It's easier to follow the test if we try to resolve commits from the `jj log` output just above. That's what we did until I changed it away from that without thinking in fcda05c69bd8. --- tests/test_log_command.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_log_command.rs b/tests/test_log_command.rs index a81310528..a467e856d 100644 --- a/tests/test_log_command.rs +++ b/tests/test_log_command.rs @@ -559,15 +559,15 @@ fn test_log_prefix_highlight_counts_hidden_commits() { "### ); insta::assert_snapshot!( - test_env.jj_cmd_failure(&repo_path, &["log", "-r", "d", "-T", prefix_format]), + test_env.jj_cmd_failure(&repo_path, &["log", "-r", "4", "-T", prefix_format]), @r###" - Error: Commit or change id prefix "d" is ambiguous + Error: Commit or change id prefix "4" is ambiguous "### ); insta::assert_snapshot!( - test_env.jj_cmd_success(&repo_path, &["log", "-r", "d0", "-T", prefix_format]), + test_env.jj_cmd_success(&repo_path, &["log", "-r", "44", "-T", prefix_format]), @r###" - ◉ Change p[szsrknsmxqw] extra d0[947f34cec4] + @ Change w[qnwkozpkust] 44[4c3c5066d3] │ ~ "###