-
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.
cli: enable
reset-author-on-edit
and fix tests
- Loading branch information
Showing
35 changed files
with
1,238 additions
and
1,238 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ fn test_builtin_alias_trunk_matches_main() { | |
|
||
let stdout = test_env.jj_cmd_success(&workspace_root, &["log", "-r", "trunk()"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
◉ lzmmnrxq [email protected] 2001-02-03 08:05:08 main 45a3aa29 | ||
◉ xtvrqkyv [email protected] 2001-02-03 08:05:08 main d13ecdbd | ||
│ (empty) description 1 | ||
~ | ||
"###); | ||
|
@@ -64,7 +64,7 @@ fn test_builtin_alias_trunk_matches_master() { | |
|
||
let stdout = test_env.jj_cmd_success(&workspace_root, &["log", "-r", "trunk()"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
◉ lzmmnrxq [email protected] 2001-02-03 08:05:08 master 45a3aa29 | ||
◉ xtvrqkyv [email protected] 2001-02-03 08:05:08 master d13ecdbd | ||
│ (empty) description 1 | ||
~ | ||
"###); | ||
|
@@ -76,7 +76,7 @@ fn test_builtin_alias_trunk_matches_trunk() { | |
|
||
let stdout = test_env.jj_cmd_success(&workspace_root, &["log", "-r", "trunk()"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
◉ lzmmnrxq [email protected] 2001-02-03 08:05:08 trunk 45a3aa29 | ||
◉ xtvrqkyv [email protected] 2001-02-03 08:05:08 trunk d13ecdbd | ||
│ (empty) description 1 | ||
~ | ||
"###); | ||
|
@@ -91,7 +91,7 @@ fn test_builtin_alias_trunk_matches_exactly_one_commit() { | |
|
||
let stdout = test_env.jj_cmd_success(&workspace_root, &["log", "-r", "trunk()"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
◉ lzmmnrxq [email protected] 2001-02-03 08:05:08 main 45a3aa29 | ||
◉ xtvrqkyv [email protected] 2001-02-03 08:05:08 main d13ecdbd | ||
│ (empty) description 1 | ||
~ | ||
"###); | ||
|
@@ -107,7 +107,7 @@ fn test_builtin_alias_trunk_override_alias() { | |
|
||
let stdout = test_env.jj_cmd_success(&workspace_root, &["log", "-r", "trunk()"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
◉ lzmmnrxq [email protected] 2001-02-03 08:05:08 override-trunk 45a3aa29 | ||
◉ xtvrqkyv [email protected] 2001-02-03 08:05:08 override-trunk d13ecdbd | ||
│ (empty) description 1 | ||
~ | ||
"###); | ||
|
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 |
---|---|---|
|
@@ -89,7 +89,7 @@ fn test_log_author_timestamp() { | |
let stdout = test_env.jj_cmd_success(&repo_path, &["log", "-T", "author.timestamp()"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
@ 2001-02-03 04:05:09.000 +07:00 | ||
◉ 2001-02-03 04:05:07.000 +07:00 | ||
◉ 2001-02-03 04:05:08.000 +07:00 | ||
◉ 1970-01-01 00:00:00.000 +00:00 | ||
"###); | ||
} | ||
|
@@ -189,29 +189,29 @@ fn test_log_default() { | |
// Test default log output format | ||
let stdout = test_env.jj_cmd_success(&repo_path, &["log"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
@ kkmpptxz [email protected] 2001-02-03 08:05:09 my-branch 9de54178 | ||
@ kkmpptxz [email protected] 2001-02-03 08:05:09 my-branch bac9ff9e | ||
│ (empty) description 1 | ||
◉ qpvuntsm [email protected] 2001-02-03 08:05:08 4291e264 | ||
◉ qpvuntsm [email protected] 2001-02-03 08:05:08 aa2015d7 | ||
│ add a file | ||
◉ zzzzzzzz root() 00000000 | ||
"###); | ||
|
||
// Color | ||
let stdout = test_env.jj_cmd_success(&repo_path, &["log", "--color=always"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
@ [1m[38;5;13mk[38;5;8mkmpptxz[39m [38;5;[email protected][39m [38;5;14m2001-02-03 08:05:09[39m [38;5;13mmy-branch[39m [38;5;12m9[38;5;8mde54178[39m[0m | ||
@ [1m[38;5;13mk[38;5;8mkmpptxz[39m [38;5;[email protected][39m [38;5;14m2001-02-03 08:05:09[39m [38;5;13mmy-branch[39m [38;5;12mb[38;5;8mac9ff9e[39m[0m | ||
│ [1m[38;5;10m(empty)[39m description 1[0m | ||
◉ [1m[38;5;5mq[0m[38;5;8mpvuntsm[39m [38;5;[email protected][39m [38;5;6m2001-02-03 08:05:08[39m [1m[38;5;4m4[0m[38;5;8m291e264[39m | ||
◉ [1m[38;5;5mq[0m[38;5;8mpvuntsm[39m [38;5;[email protected][39m [38;5;6m2001-02-03 08:05:08[39m [1m[38;5;4ma[0m[38;5;8ma2015d7[39m | ||
│ add a file | ||
◉ [1m[38;5;5mz[0m[38;5;8mzzzzzzz[39m [38;5;2mroot()[39m [1m[38;5;4m0[0m[38;5;8m0000000[39m | ||
"###); | ||
|
||
// Color without graph | ||
let stdout = test_env.jj_cmd_success(&repo_path, &["log", "--color=always", "--no-graph"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
[1m[38;5;13mk[38;5;8mkmpptxz[39m [38;5;[email protected][39m [38;5;14m2001-02-03 08:05:09[39m [38;5;13mmy-branch[39m [38;5;12m9[38;5;8mde54178[39m[0m | ||
[1m[38;5;13mk[38;5;8mkmpptxz[39m [38;5;[email protected][39m [38;5;14m2001-02-03 08:05:09[39m [38;5;13mmy-branch[39m [38;5;12mb[38;5;8mac9ff9e[39m[0m | ||
[1m[38;5;10m(empty)[39m description 1[0m | ||
[1m[38;5;5mq[0m[38;5;8mpvuntsm[39m [38;5;[email protected][39m [38;5;6m2001-02-03 08:05:08[39m [1m[38;5;4m4[0m[38;5;8m291e264[39m | ||
[1m[38;5;5mq[0m[38;5;8mpvuntsm[39m [38;5;[email protected][39m [38;5;6m2001-02-03 08:05:08[39m [1m[38;5;4ma[0m[38;5;8ma2015d7[39m | ||
add a file | ||
[1m[38;5;5mz[0m[38;5;8mzzzzzzz[39m [38;5;2mroot()[39m [1m[38;5;4m0[0m[38;5;8m0000000[39m | ||
"###); | ||
|
@@ -440,7 +440,7 @@ fn test_log_obslog_divergence() { | |
let stdout = test_env.jj_cmd_success(&repo_path, &["log"]); | ||
// No divergence | ||
insta::assert_snapshot!(stdout, @r###" | ||
@ qpvuntsm [email protected] 2001-02-03 08:05:08 7a17d52e | ||
@ qpvuntsm [email protected] 2001-02-03 08:05:08 ff309c29 | ||
│ description 1 | ||
◉ zzzzzzzz root() 00000000 | ||
"###); | ||
|
@@ -452,9 +452,9 @@ fn test_log_obslog_divergence() { | |
); | ||
let (stdout, stderr) = test_env.jj_cmd_ok(&repo_path, &["log"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
◉ qpvuntsm?? [email protected] 2001-02-03 08:05:10 8979953d | ||
◉ qpvuntsm?? [email protected] 2001-02-03 08:05:10 6ba70e00 | ||
│ description 2 | ||
│ @ qpvuntsm?? [email protected] 2001-02-03 08:05:08 7a17d52e | ||
│ @ qpvuntsm?? [email protected] 2001-02-03 08:05:08 ff309c29 | ||
├─╯ description 1 | ||
◉ zzzzzzzz root() 00000000 | ||
"###); | ||
|
@@ -465,19 +465,19 @@ fn test_log_obslog_divergence() { | |
// Color | ||
let stdout = test_env.jj_cmd_success(&repo_path, &["log", "--color=always"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
◉ [1m[4m[38;5;1mq[0m[38;5;1mpvuntsm??[39m [38;5;[email protected][39m [38;5;6m2001-02-03 08:05:10[39m [1m[38;5;4m8[0m[38;5;8m979953d[39m | ||
◉ [1m[4m[38;5;1mq[0m[38;5;1mpvuntsm??[39m [38;5;[email protected][39m [38;5;6m2001-02-03 08:05:10[39m [1m[38;5;4m6[0m[38;5;8mba70e00[39m | ||
│ description 2 | ||
│ @ [1m[4m[38;5;1mq[24mpvuntsm[38;5;9m??[39m [38;5;[email protected][39m [38;5;14m2001-02-03 08:05:08[39m [38;5;12m7[38;5;8ma17d52e[39m[0m | ||
│ @ [1m[4m[38;5;1mq[24mpvuntsm[38;5;9m??[39m [38;5;[email protected][39m [38;5;14m2001-02-03 08:05:08[39m [38;5;12mf[38;5;8mf309c29[39m[0m | ||
├─╯ [1mdescription 1[0m | ||
◉ [1m[38;5;5mz[0m[38;5;8mzzzzzzz[39m [38;5;2mroot()[39m [1m[38;5;4m0[0m[38;5;8m0000000[39m | ||
"###); | ||
|
||
// Obslog and hidden divergent | ||
let stdout = test_env.jj_cmd_success(&repo_path, &["obslog"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
@ qpvuntsm?? [email protected] 2001-02-03 08:05:08 7a17d52e | ||
@ qpvuntsm?? [email protected] 2001-02-03 08:05:08 ff309c29 | ||
│ description 1 | ||
◉ qpvuntsm hidden [email protected] 2001-02-03 08:05:08 3b68ce25 | ||
◉ qpvuntsm hidden [email protected] 2001-02-03 08:05:08 485d52a9 | ||
│ (no description set) | ||
◉ qpvuntsm hidden [email protected] 2001-02-03 08:05:07 230dd059 | ||
(empty) (no description set) | ||
|
@@ -486,9 +486,9 @@ fn test_log_obslog_divergence() { | |
// Colored obslog | ||
let stdout = test_env.jj_cmd_success(&repo_path, &["obslog", "--color=always"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
@ [1m[4m[38;5;1mq[24mpvuntsm[38;5;9m??[39m [38;5;[email protected][39m [38;5;14m2001-02-03 08:05:08[39m [38;5;12m7[38;5;8ma17d52e[39m[0m | ||
@ [1m[4m[38;5;1mq[24mpvuntsm[38;5;9m??[39m [38;5;[email protected][39m [38;5;14m2001-02-03 08:05:08[39m [38;5;12mf[38;5;8mf309c29[39m[0m | ||
│ [1mdescription 1[0m | ||
◉ [1m[39mq[0m[38;5;8mpvuntsm[39m hidden [38;5;[email protected][39m [38;5;6m2001-02-03 08:05:08[39m [1m[38;5;4m3[0m[38;5;8mb68ce25[39m | ||
◉ [1m[39mq[0m[38;5;8mpvuntsm[39m hidden [38;5;[email protected][39m [38;5;6m2001-02-03 08:05:08[39m [1m[38;5;4m4[0m[38;5;8m85d52a9[39m | ||
│ [38;5;3m(no description set)[39m | ||
◉ [1m[39mq[0m[38;5;8mpvuntsm[39m hidden [38;5;[email protected][39m [38;5;6m2001-02-03 08:05:07[39m [1m[38;5;4m2[0m[38;5;8m30dd059[39m | ||
[38;5;2m(empty)[39m [38;5;2m(no description set)[39m | ||
|
@@ -548,7 +548,7 @@ fn test_log_branches() { | |
◉ fed794e2ba44 branch3?? branch3@origin | ||
│ ◉ b1bb3766d584 branch3?? | ||
├─╯ | ||
│ ◉ 21c33875443e branch1* | ||
│ ◉ 28ff13ce7195 branch1* | ||
├─╯ | ||
│ @ a5b4d15489cc branch2* new-branch | ||
│ ◉ 8476341eb395 branch2@origin unchanged | ||
|
@@ -658,7 +658,7 @@ fn test_log_customize_short_id() { | |
], | ||
); | ||
insta::assert_snapshot!(stdout, @r###" | ||
@ Q_pvun [email protected] 2001-02-03 08:05:08 6_9542 | ||
@ Q_pvun [email protected] 2001-02-03 08:05:08 F_a156 | ||
│ (empty) first | ||
◉ Z_zzzz root() 0_0000 | ||
"###); | ||
|
@@ -676,7 +676,7 @@ fn test_log_customize_short_id() { | |
], | ||
); | ||
insta::assert_snapshot!(stdout, @r###" | ||
@ QPVUNTSM [email protected] 2001-02-03 08:05:08 69542c19 | ||
@ QPVUNTSM [email protected] 2001-02-03 08:05:08 fa15625b | ||
│ (empty) first | ||
◉ ZZZZZZZZ root() 00000000 | ||
"###); | ||
|
Oops, something went wrong.