From: Miklos Vajna Date: Sun, 13 Jul 2008 17:46:59 GMT Subject: Re: [PATCH/Test] Build in merge is broken Message-ID: <20080713174659.GE10347@genesis.frugalware.org> In-Reply-To: <20080713124100.GB10347@genesis.frugalware.org> On Sun, Jul 13, 2008 at 02:41:00PM +0200, Miklos Vajna wrote: > > The test case when run will record the parents that were asked for which is > > fine. However, only c2 is recorded as a parent in the commit object. Both > > c1 and c2 should have been recorded. The merge is otherwise working > > correctly. > > Thanks for the testcase, I'm on it. ;-) So far what I see is that the input for the reduce_heads() function is (c1, c0, c2, c0, c1). The expected output would be (c1, c2), but the actual output is c2. So I suspect the bug is not in builtin-merge.c itself but in reduce_heads(). Hmm.. Adding Junio to Cc, who is the original author of reduce_heads().