Skip to contentSkip to conversation

Update t3508 status

PATCH In review [email protected] 4 participants 5 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update t3508 status

From: Elijah Newren <[email protected]>

Test #8 of t3508-cherry-pick-many-commits.sh has been fixed since 3af0bba8bff88ec1b078aae966a59af26c7a0718.

---
 t/t3508-cherry-pick-many-commits.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
t/t3508-cherry-pick-many-commits.sh +1 -1
index 93d7189..f90ed3d 100755
@@ -82,7 +82,7 @@ test_expect_success 'revert fourth fourth~1 fourth~2 works' '
 	git diff --quiet HEAD first
 '
 
-test_expect_failure 'cherry-pick -3 fourth works' '
+test_expect_success 'cherry-pick -3 fourth works' '
 	git checkout -f master &&
 	git reset --hard first &&
 	test_tick &&
Signature · 1 line
1.7.2.rc0.207.ga9fc
#1 lore raw
Quoted 18 lines · On Tuesday 29 June 2010 03:31:31 [email protected] wrote:

From: Elijah Newren <[email protected]>

Test #8 of t3508-cherry-pick-many-commits.sh has been fixed since 3af0bba8bff88ec1b078aae966a59af26c7a0718.

---
 t/t3508-cherry-pick-many-commits.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/t/t3508-cherry-pick-many-commits.sh index 93d7189..f90ed3d 100755

t/t3508-cherry-pick-many-commits.sh +0 -0
@@ -82,7 +82,7 @@ test_expect_success 'revert fourth fourth~1 fourth~2

works' ' git diff --quiet HEAD first
'

t/t3508-cherry-pick-many-commits.sh test_expect_success 'revert fourth fourth~1 fourth~2 works' ' · line 88

Quoted 5 lines
t/t3508-cherry-pick-many-commits.sh +1 -1
-test_expect_failure 'cherry-pick -3 fourth works' '
+test_expect_success 'cherry-pick -3 fourth works' '
 	git checkout -f master &&
 	git reset --hard first &&
 	test_tick &&

I tried to put this hunk in the following patch:

http://thread.gmane.org/gmane.comp.version-control.git/149156/

but Junio said in a private mail that the test did not pass for him so he dropped this hunk.

By the way it looks like the third patch in the series has been lost:

http://thread.gmane.org/gmane.comp.version-control.git/149157

Thanks,
Christian.

#2 lore raw
In reply to [email protected]
Quoted 6 lines · [email protected] writes:

From: Elijah Newren <[email protected]>

Test #8 of t3508-cherry-pick-many-commits.sh has been fixed since 3af0bba8bff88ec1b078aae966a59af26c7a0718.

Curious.

This test is broken in the second parent of 3af0bba8b (i.e. the tip of cc/cherry-pick-stdin), but in 3af0bba8b, i.e. the merge result, it does seem to be fine.

What am I missing???

Quoted 17 lines
---
 t/t3508-cherry-pick-many-commits.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
t/t3508-cherry-pick-many-commits.sh +1 -1
index 93d7189..f90ed3d 100755
@@ -82,7 +82,7 @@ test_expect_success 'revert fourth fourth~1 fourth~2 works' '
 	git diff --quiet HEAD first
 '
 
-test_expect_failure 'cherry-pick -3 fourth works' '
+test_expect_success 'cherry-pick -3 fourth works' '
 	git checkout -f master &&
 	git reset --hard first &&
 	test_tick &&
#3 lore raw
Quoted 3 lines · Junio C Hamano
Quoted 1 line · [email protected] writes:

Test #8 of t3508-cherry-pick-many-commits.sh

[...]

Quoted 7 lines

Curious.

This test is broken in the second parent of 3af0bba8b (i.e. the tip of cc/cherry-pick-stdin), but in 3af0bba8b, i.e. the merge result, it does seem to be fine.

What am I missing???

The fix is in commit v1.7.2-rc0~6^2 (DWIM 'git show -5' to 'git show --do-walk -5', 2010-06-01):

disable --no-walk in this case so ‘git show’ and future ‘git cherry-pick’ can behave as expected.

Jonathan

#4 lore raw
Quoted 11 lines · Jonathan Nieder
Quoted 3 lines · Junio C Hamano
Quoted 1 line · [email protected] writes:

Test #8 of t3508-cherry-pick-many-commits.sh

[...]

Quoted 6 lines

Curious.

This test is broken in the second parent of 3af0bba8b (i.e. the tip of cc/cherry-pick-stdin), but in 3af0bba8b, i.e. the merge result, it does seem to be fine.

Quoted 7 lines
Quoted 1 line

What am I missing???

The fix is in commit v1.7.2-rc0~6^2 (DWIM 'git show -5' to 'git show --do-walk -5', 2010-06-01):

disable --no-walk in this case so ‘git show’ and future ‘git cherry-pick’ can behave as expected.

Ah, that's it. 3af0bba (Merge branch 'cc/cherry-pick-stdin' into next, 2010-06-27) is on 'next', so this has to be queued as an evil merge of your "DWIM" thing into cc/cherry-pick-stdin. That way, when the latter graduates to 'master', the test will be marked as "expect_success".

Thanks.