Update topo-order test.
The recently we updated rev-list --topo-order to show the heads in date order, but we had a test that expected to see the old behaviour. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Nov 14, 2005 at 18:15 UTC
d7bba815753bf8c31886fcf6bb89c9e6250674a5
1 file changed
+15
-15
t/t6003-rev-list-topo-order.sh
+15
-15
@@ -25,7 +25,7 @@ on_committer_date "1971-08-16 00:00:05" save_tag a1 unique_commit a1 tree -p a0
25
on_committer_date "1971-08-16 00:00:06" save_tag b1 unique_commit b1 tree -p a0
26
on_committer_date "1971-08-16 00:00:07" save_tag c1 unique_commit c1 tree -p b1
27
on_committer_date "1971-08-16 00:00:08" as_author foobar@example.com save_tag b2 unique_commit b2 tree -p b1
28
-on_committer_date "1971-08-16 00:00:09" save_tag b3 unique_commit b2 tree -p b2
28
+on_committer_date "1971-08-16 00:00:09" save_tag b3 unique_commit b3 tree -p b2
29
on_committer_date "1971-08-16 00:00:10" save_tag c2 unique_commit c2 tree -p c1 -p b2
30
on_committer_date "1971-08-16 00:00:11" save_tag c3 unique_commit c3 tree -p c2
31
on_committer_date "1971-08-16 00:00:12" save_tag a2 unique_commit a2 tree -p a1
@@ -116,15 +116,15 @@ g0
116
EOF
117
118
test_output_expect_success 'multiple heads' 'git-rev-list --topo-order a3 b3 c3' <<EOF
119
-b3
119
+a3
120
+a2
121
+a1
122
c3
123
c2
122
-b2
124
c1
125
+b3
126
+b2
127
b1
125
-a3
126
-a2
127
-a1
128
a0
129
l2
130
l1
@@ -133,26 +133,26 @@ root
133
EOF
134
135
test_output_expect_success 'multiple heads, prune at a1' 'git-rev-list --topo-order a3 b3 c3 ^a1' <<EOF
136
-b3
136
+a3
137
+a2
138
c3
139
c2
139
-b2
140
c1
141
+b3
142
+b2
143
b1
142
-a3
143
-a2
144
EOF
145
146
test_output_expect_success 'multiple heads, prune at l1' 'git-rev-list --topo-order a3 b3 c3 ^l1' <<EOF
147
-b3
147
+a3
148
+a2
149
+a1
150
c3
151
c2
150
-b2
152
c1
153
+b3
154
+b2
155
b1
153
-a3
154
-a2
155
-a1
156
a0
157
l2
158
EOF