t6019: demonstrate --ancestry-path A...B breakage
Signed-off-by: Kevin Bracey <kevin@bracey.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Kevin Bracey committed
May 13, 2013 at 18:00 UTC
f659031c1ceb979d423161541a8a3763bfd7c96c
1 file changed
+20
-1
t/t6019-rev-list-ancestry-path.sh
+20
-1
@@ -13,6 +13,9 @@ test_description='--ancestry-path'
13
#
14
# D..M -- M.t == M
15
# --ancestry-path D..M -- M.t == M
16
+#
17
+# F...I == F G H I
18
+# --ancestry-path F...I == F H I
19
20
. ./test-lib.sh
21
@@ -63,13 +66,29 @@ test_expect_success 'rev-list D..M -- M.t' '
66
test_cmp expect actual
67
'
68
66
-test_expect_success 'rev-list --ancestry-patch D..M -- M.t' '
69
+test_expect_success 'rev-list --ancestry-path D..M -- M.t' '
70
echo M >expect &&
71
git rev-list --ancestry-path --format=%s D..M -- M.t |
72
sed -e "/^commit /d" >actual &&
73
test_cmp expect actual
74
'
75
76
+test_expect_success 'rev-list F...I' '
77
+ for c in F G H I; do echo $c; done >expect &&
78
+ git rev-list --format=%s F...I |
79
+ sed -e "/^commit /d" |
80
+ sort >actual &&
81
+ test_cmp expect actual
82
+'
83
+
84
+test_expect_failure 'rev-list --ancestry-path F...I' '
85
+ for c in F H I; do echo $c; done >expect &&
86
+ git rev-list --ancestry-path --format=%s F...I |
87
+ sed -e "/^commit /d" |
88
+ sort >actual &&
89
+ test_cmp expect actual
90
+'
91
+
92
# b---bc
93
# / \ /
94
# a X