t3430: avoid hard-coded object IDs
Compute the object IDs used in the todo list instead of hard-coding them. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
4dd1b5f90f
commit
9a6738c061
@ -37,20 +37,27 @@ test_expect_success 'setup' '
|
|||||||
test_commit A &&
|
test_commit A &&
|
||||||
git checkout -b first &&
|
git checkout -b first &&
|
||||||
test_commit B &&
|
test_commit B &&
|
||||||
|
b=$(git rev-parse --short HEAD) &&
|
||||||
git checkout master &&
|
git checkout master &&
|
||||||
test_commit C &&
|
test_commit C &&
|
||||||
|
c=$(git rev-parse --short HEAD) &&
|
||||||
test_commit D &&
|
test_commit D &&
|
||||||
|
d=$(git rev-parse --short HEAD) &&
|
||||||
git merge --no-commit B &&
|
git merge --no-commit B &&
|
||||||
test_tick &&
|
test_tick &&
|
||||||
git commit -m E &&
|
git commit -m E &&
|
||||||
git tag -m E E &&
|
git tag -m E E &&
|
||||||
|
e=$(git rev-parse --short HEAD) &&
|
||||||
git checkout -b second C &&
|
git checkout -b second C &&
|
||||||
test_commit F &&
|
test_commit F &&
|
||||||
|
f=$(git rev-parse --short HEAD) &&
|
||||||
test_commit G &&
|
test_commit G &&
|
||||||
|
g=$(git rev-parse --short HEAD) &&
|
||||||
git checkout master &&
|
git checkout master &&
|
||||||
git merge --no-commit G &&
|
git merge --no-commit G &&
|
||||||
test_tick &&
|
test_tick &&
|
||||||
git commit -m H &&
|
git commit -m H &&
|
||||||
|
h=$(git rev-parse --short HEAD) &&
|
||||||
git tag -m H H &&
|
git tag -m H H &&
|
||||||
git checkout A &&
|
git checkout A &&
|
||||||
test_commit conflicting-G G.t
|
test_commit conflicting-G G.t
|
||||||
@ -93,24 +100,24 @@ test_expect_success 'create completely different structure' '
|
|||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'generate correct todo list' '
|
test_expect_success 'generate correct todo list' '
|
||||||
cat >expect <<-\EOF &&
|
cat >expect <<-EOF &&
|
||||||
label onto
|
label onto
|
||||||
|
|
||||||
reset onto
|
reset onto
|
||||||
pick d9df450 B
|
pick $b B
|
||||||
label E
|
label E
|
||||||
|
|
||||||
reset onto
|
reset onto
|
||||||
pick 5dee784 C
|
pick $c C
|
||||||
label branch-point
|
label branch-point
|
||||||
pick ca2c861 F
|
pick $f F
|
||||||
pick 088b00a G
|
pick $g G
|
||||||
label H
|
label H
|
||||||
|
|
||||||
reset branch-point # C
|
reset branch-point # C
|
||||||
pick 12bd07b D
|
pick $d D
|
||||||
merge -C 2051b56 E # E
|
merge -C $e E # E
|
||||||
merge -C 233d48a H # H
|
merge -C $h H # H
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user