Changeset 782 for git/branches/dmik/t/t6019-rev-list-ancestry-path.sh
- Timestamp:
- Jun 23, 2014, 9:45:51 PM (11 years ago)
- Location:
- git/branches/dmik
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
git/branches/dmik ¶
- Property svn:mergeinfo changed
/git/vendor/2.0.0 (added) merged: 777 /git/vendor/current merged: 772,774,776
- Property svn:mergeinfo changed
-
TabularUnified git/branches/dmik/t/t6019-rev-list-ancestry-path.sh ¶
r626 r782 14 14 # D..M -- M.t == M 15 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 # 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 16 23 17 24 . ./test-lib.sh … … 64 71 ' 65 72 66 test_expect_success 'rev-list --ancestry-pat ch D..M -- M.t' '73 test_expect_success 'rev-list --ancestry-path D..M -- M.t' ' 67 74 echo M >expect && 68 75 git rev-list --ancestry-path --format=%s D..M -- M.t | 69 76 sed -e "/^commit /d" >actual && 77 test_cmp expect actual 78 ' 79 80 test_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 88 test_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 97 test_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 104 test_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 111 test_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 && 70 116 test_cmp expect actual 71 117 '
Note:
See TracChangeset
for help on using the changeset viewer.