File tree Expand file tree Collapse file tree 10 files changed +420
-11
lines changed Expand file tree Collapse file tree 10 files changed +420
-11
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ humantime-serde = "1"
3434bstr = { version = " 0.2" , features = [" serde1" ] }
3535derive_more = " 0.99.17"
3636eyre = " 0.6"
37- serde_yaml = " 0.9.10 "
37+ serde_yaml = " 0.8.0 "
3838serde_json = " 1.0"
3939schemars = { version = " 0.8.8" , features = [" preserve_order" ] }
4040toml = " 0.5"
Original file line number Diff line number Diff line change 1+ #[ track_caller]
2+ fn assert_success ( path : impl AsRef < std:: path:: Path > ) {
3+ git_fixture:: Dag :: load ( path. as_ref ( ) ) . unwrap ( ) ;
4+ }
5+
6+ #[ test]
7+ fn branches ( ) {
8+ assert_success ( "tests/fixtures/branches.yml" ) ;
9+ }
10+
11+ #[ test]
12+ fn conflict ( ) {
13+ assert_success ( "tests/fixtures/conflict.yml" ) ;
14+ }
15+
16+ #[ test]
17+ fn fixup ( ) {
18+ assert_success ( "tests/fixtures/fixup.yml" ) ;
19+ }
20+
21+ #[ test]
22+ fn git_rebase_existing ( ) {
23+ assert_success ( "tests/fixtures/git_rebase_existing.yml" ) ;
24+ }
25+
26+ #[ test]
27+ fn git_rebase_new ( ) {
28+ assert_success ( "tests/fixtures/git_rebase_new.yml" ) ;
29+ }
30+
31+ #[ test]
32+ fn pr_semi_linear_merge ( ) {
33+ assert_success ( "tests/fixtures/pr-semi-linear-merge.yml" ) ;
34+ }
35+
36+ #[ test]
37+ fn pr_squash ( ) {
38+ assert_success ( "tests/fixtures/pr-squash.yml" ) ;
39+ }
Original file line number Diff line number Diff line change 1+ init : true
2+ events :
3+ - tree :
4+ tracked :
5+ " file_a.txt " : " 1"
6+ message : " 1"
7+ branch : initial
8+ - tree :
9+ tracked :
10+ " file_a.txt " : " 2"
11+ message : " 2"
12+ - tree :
13+ tracked :
14+ " file_a.txt " : " 3"
15+ message : " 3"
16+ branch : base
17+ - children :
18+ - - tree :
19+ tracked :
20+ " file_a.txt " : " 3"
21+ " file_b.txt " : " 1"
22+ message : " 4"
23+ - tree :
24+ tracked :
25+ " file_a.txt " : " 3"
26+ " file_b.txt " : " 2"
27+ message : " 5"
28+ branch : master
29+ - tree :
30+ tracked :
31+ " file_a.txt " : " 3"
32+ " file_b.txt " : " 3"
33+ message : " 6"
34+ branch : off_master
35+ - - tree :
36+ tracked :
37+ " file_a.txt " : " 3"
38+ " file_c.txt " : " 1"
39+ message : " 7"
40+ branch : feature1
41+ - tree :
42+ tracked :
43+ " file_a.txt " : " 3"
44+ " file_c.txt " : " 2"
45+ message : " 8"
46+ - tree :
47+ tracked :
48+ " file_a.txt " : " 3"
49+ " file_c.txt " : " 3"
50+ message : " 9"
51+ - tree :
52+ tracked :
53+ " file_a.txt " : " 3"
54+ " file_c.txt " : " 4"
55+ message : " 10"
56+ branch : feature2
Original file line number Diff line number Diff line change 1+ init : true
2+ events :
3+ - tree :
4+ tracked :
5+ " file_a.txt " : " 1"
6+ message : " 1"
7+ branch : initial
8+ - tree :
9+ tracked :
10+ " file_a.txt " : " 2"
11+ message : " 2"
12+ - tree :
13+ tracked :
14+ " file_a.txt " : " 3"
15+ message : " 3"
16+ branch : base
17+ - children :
18+ - - tree :
19+ tracked :
20+ " file_a.txt " : " 4"
21+ message : " 4"
22+ - tree :
23+ tracked :
24+ " file_a.txt " : " 5"
25+ message : " 5"
26+ branch : master
27+ - - tree :
28+ tracked :
29+ " file_a.txt " : " 6"
30+ message : " 7"
31+ branch : feature1
Original file line number Diff line number Diff line change 1+ init : true
2+ events :
3+ - tree :
4+ tracked :
5+ " file_a.txt " : " 3"
6+ message : " commit 1"
7+ branch : base
8+ - tree :
9+ tracked :
10+ " file_a.txt " : " 3"
11+ " file_b.txt " : " 1"
12+ message : " commit 2"
13+ - tree :
14+ tracked :
15+ " file_a.txt " : " 3"
16+ " file_b.txt " : " 2"
17+ message : " master commit"
18+ branch : master
19+ - tree :
20+ tracked :
21+ " file_a.txt " : " 3"
22+ " file_b.txt " : " 3"
23+ message : " feature1 commit 1"
24+ - tree :
25+ tracked :
26+ " file_a.txt " : " 3"
27+ " file_b.txt " : " 5"
28+ message : " feature1 commit 2"
29+ branch : feature1
30+ - tree :
31+ tracked :
32+ " file_a.txt " : " 3"
33+ " file_c.txt " : " 1"
34+ message : " fixup! feature1 commit 1"
35+ - tree :
36+ tracked :
37+ " file_a.txt " : " 3"
38+ " file_c.txt " : " 4"
39+ message : " feature1 commit 3"
40+ - tree :
41+ tracked :
42+ " file_a.txt " : " 3"
43+ " file_c.txt " : " 1"
44+ message : " fixup! feature1 commit 1"
45+ - tree :
46+ tracked :
47+ " file_a.txt " : " 3"
48+ " file_c.txt " : " 2"
49+ message : " fixup! feature1 commit 2"
50+ - tree :
51+ tracked :
52+ " file_a.txt " : " 3"
53+ " file_c.txt " : " 4"
54+ message : " feature2 commit"
55+ - tree :
56+ tracked :
57+ " file_a.txt " : " 3"
58+ " file_c.txt " : " 1"
59+ message : " fixup! feature1 commit 1"
60+ branch : feature2
Original file line number Diff line number Diff line change 1+ init : true
2+ events :
3+ - tree :
4+ tracked :
5+ " file_a.txt " : " 1"
6+ message : " 1"
7+ branch : initial
8+ - tree :
9+ tracked :
10+ " file_a.txt " : " 2"
11+ message : " 2"
12+ - tree :
13+ tracked :
14+ " file_a.txt " : " 3"
15+ message : " 3"
16+ branch : master
17+ - children :
18+ - - tree :
19+ tracked :
20+ " file_a.txt " : " 3"
21+ " file_b.txt " : " 1"
22+ message : " 7"
23+ - tree :
24+ tracked :
25+ " file_a.txt " : " 3"
26+ " file_b.txt " : " 2"
27+ message : " 8"
28+ branch : feature2
29+ # `git rebase master` caused the history to split
30+ - - tree :
31+ tracked :
32+ " file_a.txt " : " 3"
33+ " file_b.txt " : " 1"
34+ message : " 7"
35+ branch : feature1
Original file line number Diff line number Diff line change 1+ init : true
2+ events :
3+ - tree :
4+ tracked :
5+ " file_a.txt " : " 1"
6+ message : " 1"
7+ branch : initial
8+ - tree :
9+ tracked :
10+ " file_a.txt " : " 2"
11+ message : " 2"
12+ - tree :
13+ tracked :
14+ " file_a.txt " : " 3"
15+ message : " 3"
16+ branch : master
17+ - children :
18+ - - tree :
19+ tracked :
20+ " file_a.txt " : " 3"
21+ " file_b.txt " : " 1"
22+ message : " 7"
23+ - tree :
24+ tracked :
25+ " file_a.txt " : " 3"
26+ " file_b.txt " : " 1"
27+ " file_c.txt " : " 1"
28+ message : " 8"
29+ branch : feature2
30+ # `git rebase master` caused the history to split
31+ - - tree :
32+ tracked :
33+ " file_a.txt " : " 3"
34+ " file_b.txt " : " 1"
35+ message : " 7"
36+ branch : feature1
You can’t perform that action at this time.
0 commit comments