mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-12 23:23:20 +00:00
spelling: nonexistent
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
a591325e07
commit
fd3f8afe1a
4 changed files with 6 additions and 6 deletions
|
@ -255,7 +255,7 @@ No changes, only trying to get the automated build to work.
|
||||||
|
|
||||||
### Fixed bugs
|
### Fixed bugs
|
||||||
|
|
||||||
- (#131) Fixed crash when `core.excludesFile` pointed to non-existent file, and
|
- (#131) Fixed crash when `core.excludesFile` pointed to nonexistent file, and
|
||||||
made leading `~/` in that config expand to `$HOME/`
|
made leading `~/` in that config expand to `$HOME/`
|
||||||
|
|
||||||
## [0.3.0] - 2022-03-12
|
## [0.3.0] - 2022-03-12
|
||||||
|
|
|
@ -1744,7 +1744,7 @@ mod tests {
|
||||||
index.resolve_prefix(&HexPrefix::new(id_2.hex()).unwrap()),
|
index.resolve_prefix(&HexPrefix::new(id_2.hex()).unwrap()),
|
||||||
PrefixResolution::SingleMatch(id_2)
|
PrefixResolution::SingleMatch(id_2)
|
||||||
);
|
);
|
||||||
// Test non-existent commits
|
// Test nonexistent commits
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
index.resolve_prefix(&HexPrefix::new("ffffff".to_string()).unwrap()),
|
index.resolve_prefix(&HexPrefix::new("ffffff".to_string()).unwrap()),
|
||||||
PrefixResolution::NoMatch
|
PrefixResolution::NoMatch
|
||||||
|
|
|
@ -318,10 +318,10 @@ fn test_resolve_symbol_git_refs() {
|
||||||
RefTarget::Normal(commit3.id().clone()),
|
RefTarget::Normal(commit3.id().clone()),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Non-existent ref
|
// Nonexistent ref
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
resolve_symbol(mut_repo.as_repo_ref(), "non-existent", None),
|
resolve_symbol(mut_repo.as_repo_ref(), "nonexistent", None),
|
||||||
Err(RevsetError::NoSuchRevision("non-existent".to_string()))
|
Err(RevsetError::NoSuchRevision("nonexistent".to_string()))
|
||||||
);
|
);
|
||||||
|
|
||||||
// Full ref
|
// Full ref
|
||||||
|
|
|
@ -45,7 +45,7 @@ fn test_print() {
|
||||||
insta::assert_snapshot!(stdout, @r###"
|
insta::assert_snapshot!(stdout, @r###"
|
||||||
c
|
c
|
||||||
"###);
|
"###);
|
||||||
let stderr = test_env.jj_cmd_failure(&repo_path, &["print", "non-existent"]);
|
let stderr = test_env.jj_cmd_failure(&repo_path, &["print", "nonexistent"]);
|
||||||
insta::assert_snapshot!(stderr, @r###"
|
insta::assert_snapshot!(stderr, @r###"
|
||||||
Error: No such path
|
Error: No such path
|
||||||
"###);
|
"###);
|
||||||
|
|
Loading…
Reference in a new issue