-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revsets: stop
jj
parsing br
as a git_ref refs/heads/br
Use `br@git` instead. Before, if there is not a local branch `br`, jj tried to resolve it as a git ref `refs/heads/br`. Unchanged from before, `br` can still be resolved as a tag `refs/tag/br`.
- Loading branch information
Showing
4 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,11 +140,11 @@ fn test_branch_forget_export() { | |
foo (deleted) | ||
@git: 65b6b74e0897 (no description set) | ||
"###); | ||
|
||
// Aside: the way we currently resolve git refs means that `foo` | ||
// resolves to `foo@git` when actual `foo` doesn't exist. | ||
// Short-term TODO: This behavior will be changed in a subsequent commit. | ||
let stdout = test_env.jj_cmd_success(&repo_path, &["log", "-r=foo", "--no-graph"]); | ||
let stderr = test_env.jj_cmd_failure(&repo_path, &["log", "-r=foo", "--no-graph"]); | ||
insta::assert_snapshot!(stderr, @r###" | ||
Error: Revision "foo" doesn't exist | ||
"###); | ||
let stdout = test_env.jj_cmd_success(&repo_path, &["log", "-r=foo@git", "--no-graph"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
rlvkpnrzqnoo [email protected] 2001-02-03 04:05:08.000 +07:00 65b6b74e0897 | ||
(empty) (no description set) | ||
|