Ignore:
Timestamp:
Jun 23, 2014, 9:45:51 PM (11 years ago)
Author:
dmik
Message:

git: Merge version 2.0.0 from vendor to dmik branch.

Location:
git/branches/dmik
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • git/branches/dmik

  • TabularUnified git/branches/dmik/t/t6019-rev-list-ancestry-path.sh

    r626 r782  
    1414#  D..M -- M.t                 == M
    1515#  --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#  G..M -- G.t                 == [nothing - was dropped in "-s ours" merge L]
     21#  --ancestry-path G..M -- G.t == L
     22#  --ancestry-path --simplify-merges G^..M -- G.t == G L
    1623
    1724. ./test-lib.sh
     
    6471'
    6572
    66 test_expect_success 'rev-list --ancestry-patch D..M -- M.t' '
     73test_expect_success 'rev-list --ancestry-path D..M -- M.t' '
    6774        echo M >expect &&
    6875        git rev-list --ancestry-path --format=%s D..M -- M.t |
    6976        sed -e "/^commit /d" >actual &&
     77        test_cmp expect actual
     78'
     79
     80test_expect_success 'rev-list F...I' '
     81        for c in F G H I; do echo $c; done >expect &&
     82        git rev-list --format=%s F...I |
     83        sed -e "/^commit /d" |
     84        sort >actual &&
     85        test_cmp expect actual
     86'
     87
     88test_expect_success 'rev-list --ancestry-path F...I' '
     89        for c in F H I; do echo $c; done >expect &&
     90        git rev-list --ancestry-path --format=%s F...I |
     91        sed -e "/^commit /d" |
     92        sort >actual &&
     93        test_cmp expect actual
     94'
     95
     96# G.t is dropped in an "-s ours" merge
     97test_expect_success 'rev-list G..M -- G.t' '
     98        >expect &&
     99        git rev-list --format=%s G..M -- G.t |
     100        sed -e "/^commit /d" >actual &&
     101        test_cmp expect actual
     102'
     103
     104test_expect_success 'rev-list --ancestry-path G..M -- G.t' '
     105        echo L >expect &&
     106        git rev-list --ancestry-path --format=%s G..M -- G.t |
     107        sed -e "/^commit /d" >actual &&
     108        test_cmp expect actual
     109'
     110
     111test_expect_success 'rev-list --ancestry-path --simplify-merges G^..M -- G.t' '
     112        for c in G L; do echo $c; done >expect &&
     113        git rev-list --ancestry-path --simplify-merges --format=%s G^..M -- G.t |
     114        sed -e "/^commit /d" |
     115        sort >actual &&
    70116        test_cmp expect actual
    71117'
Note: See TracChangeset for help on using the changeset viewer.