monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] monotone merge error


From: Thomas Keller
Subject: Re: [Monotone-devel] monotone merge error
Date: Sun, 16 May 2010 23:53:11 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b2pre Thunderbird/3.0.4

Am 16.05.10 18:16, schrieb Timothy Brownawell:
> On 05/16/2010 10:14 AM, Stephen Leake wrote:
>> Stephen Leake<address@hidden>  writes:
>>
>>> I encountered this bug at work again this week. I have more clues about
>>> what causes it, and I'll work on a reproducer.
>>>
>>> In the meantime, I've implemented a check in 'db check', and a fix in
>>> 'db regenerate_caches'.
>>
>> I now have a reproducer for this bug; see tests/branch_leaves_sync_bug/
>>
>> The bug occurs when two developers each do the same merge, one developer
>> adds another commit, and then they sync. The merge revision and the new
>> commit revision are both left in branch_leaves; the merge revision
>> should have been deleted. I'm guessing the merge revision was added back
>> during the sync.
>>
>> The bug does not occur if the two "developers" use the same authorname
>> and key.
>>
>> I have not started trying to find the bug; I'm just basking in finding a
>> reproducer :).
> 
> | Abe does a merge
> | Beth does an identical merge
> | Beth commit a child of that merge
> | Beth pulls from Abe
> 
> This results in Beth getting a new branch cert on the merge revision,
> which is an ancestor of the current leaves of its branch. The logic in
> database::record_as_branch_leaf() didn't recognize that this could
> happen, but thought that a new cert on anything that wasn't already a
> leaf would make it a leaf. It should be fixed now.

Very cool, thanks to you two for tracking down and fixing the problem!

Thomas.

-- 
GPG-Key 0x160D1092 | address@hidden | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]