summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-27 21:37:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-27 21:37:52 (GMT)
commit81de16a5d5d1efffb472eac9d2a7f373cdcd906b (patch)
tree9a2a507c5484d1700a566dafed6dcb5091ad9be7 /t
parent7f3447cce83ebe80c498a4455c03b0c8f37ac938 (diff)
parenta765499a0884375c47c78d0d1e2926e875074427 (diff)
downloadgit-81de16a5d5d1efffb472eac9d2a7f373cdcd906b.zip
git-81de16a5d5d1efffb472eac9d2a7f373cdcd906b.tar.gz
git-81de16a5d5d1efffb472eac9d2a7f373cdcd906b.tar.bz2
Merge branch 'kb/ancestry-path-threedots' into maint
* kb/ancestry-path-threedots: revision.c: treat A...B merge bases as if manually specified t6019: demonstrate --ancestry-path A...B breakage
Diffstat (limited to 't')
-rwxr-xr-xt/t6019-rev-list-ancestry-path.sh21
1 files changed, 20 insertions, 1 deletions
diff --git a/t/t6019-rev-list-ancestry-path.sh b/t/t6019-rev-list-ancestry-path.sh
index 39b4cb0..dd5b0e5 100755
--- a/t/t6019-rev-list-ancestry-path.sh
+++ b/t/t6019-rev-list-ancestry-path.sh
@@ -13,6 +13,9 @@ test_description='--ancestry-path'
#
# D..M -- M.t == M
# --ancestry-path D..M -- M.t == M
+#
+# F...I == F G H I
+# --ancestry-path F...I == F H I
. ./test-lib.sh
@@ -63,13 +66,29 @@ test_expect_success 'rev-list D..M -- M.t' '
test_cmp expect actual
'
-test_expect_success 'rev-list --ancestry-patch D..M -- M.t' '
+test_expect_success 'rev-list --ancestry-path D..M -- M.t' '
echo M >expect &&
git rev-list --ancestry-path --format=%s D..M -- M.t |
sed -e "/^commit /d" >actual &&
test_cmp expect actual
'
+test_expect_success 'rev-list F...I' '
+ for c in F G H I; do echo $c; done >expect &&
+ git rev-list --format=%s F...I |
+ sed -e "/^commit /d" |
+ sort >actual &&
+ test_cmp expect actual
+'
+
+test_expect_success 'rev-list --ancestry-path F...I' '
+ for c in F H I; do echo $c; done >expect &&
+ git rev-list --ancestry-path --format=%s F...I |
+ sed -e "/^commit /d" |
+ sort >actual &&
+ test_cmp expect actual
+'
+
# b---bc
# / \ /
# a X