Git development
 help / color / mirror / Atom feed
* [PATCH 1/2] Test case that demonstrates problem with --merge-order ^ processing
@ 2005-06-29 23:45 Jon Seymour
  0 siblings, 0 replies; only message in thread
From: Jon Seymour @ 2005-06-29 23:45 UTC (permalink / raw)
  To: git; +Cc: torvalds, jon.seymour


Added a test case that shows that --merge-order doesn't produce the
correct result in the following case.

A
|
| B
|/
C
|
D

git-rev-list --merge-order A ^B should produce just A. Instead
it produces BCD.

A subsequent patch will fix this defect.

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
---

 t/t6001-rev-list-merge-order.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

444e7b2e2491309cd7101bd48881743a35837a56
diff --git a/t/t6001-rev-list-merge-order.sh b/t/t6001-rev-list-merge-order.sh
--- a/t/t6001-rev-list-merge-order.sh
+++ b/t/t6001-rev-list-merge-order.sh
@@ -543,6 +543,11 @@ test_output_expect_success 'simple merge
 = alt_root
 EOF
 
+test_output_expect_success "don't print things unreachable from one branch" "git-rev-list a3 ^b3 --merge-order" <<EOF
+a3
+a2
+a1
+EOF
 
 #
 #
------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-29 23:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-29 23:45 [PATCH 1/2] Test case that demonstrates problem with --merge-order ^ processing Jon Seymour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox