mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-14 00:24:36 +00:00
revset: clarify error about missing working-copy commit for workspace
The error message that says something like 'Workspace "default" doesn't have a working copy' confused me when I saw it. The problem it's describing is that the repo view doesn't have a working-copy commit for the given workspace id. Saying "working-copy commit" instead of "working copy" hopefully clarifies it a bit.
This commit is contained in:
parent
68b8b1a6a6
commit
494de23ea5
2 changed files with 2 additions and 2 deletions
|
@ -643,7 +643,7 @@ fn test_workspaces_forget() {
|
|||
// Revision "@" cannot be used
|
||||
let stderr = test_env.jj_cmd_failure(&main_path, &["log", "-r", "@"]);
|
||||
insta::assert_snapshot!(stderr, @r###"
|
||||
Error: Workspace "default" doesn't have a working copy
|
||||
Error: Workspace "default" doesn't have a working-copy commit
|
||||
"###);
|
||||
|
||||
// Try to add back the workspace
|
||||
|
|
|
@ -53,7 +53,7 @@ pub enum RevsetResolutionError {
|
|||
name: String,
|
||||
candidates: Vec<String>,
|
||||
},
|
||||
#[error("Workspace \"{name}\" doesn't have a working copy")]
|
||||
#[error("Workspace \"{name}\" doesn't have a working-copy commit")]
|
||||
WorkspaceMissingWorkingCopy { name: String },
|
||||
#[error("An empty string is not a valid revision")]
|
||||
EmptyString,
|
||||
|
|
Loading…
Reference in a new issue