diff --git a/cli/tests/test_log_command.rs b/cli/tests/test_log_command.rs index 0782d6ba3a3..0d52f0ddf9c 100644 --- a/cli/tests/test_log_command.rs +++ b/cli/tests/test_log_command.rs @@ -1001,6 +1001,15 @@ fn test_default_revset() { .lines() .count() ); + + // The default revset is not used if a path is specified + insta::assert_snapshot!( + test_env.jj_cmd_success(&repo_path, &["log", "file1", "-T", "description"]), + @r###" + @ add a file + │ + ~ + "###); } #[test]