From 14433a4f7409e805f886407a480eb23bb90c885a Mon Sep 17 00:00:00 2001 From: Noah Mayr Date: Mon, 1 Apr 2024 11:20:19 +0200 Subject: [PATCH] tests: add test to ensure that default revset is not used when a path is specified --- cli/tests/test_log_command.rs | 9 +++++++++ 1 file changed, 9 insertions(+) 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]