|
|
Choosing A Webhost: |
Re: ambiguous clean (was Re: [Monotone-devel] Re: [cdv-devel] more merging : msg#00032version-control.codeville.devel
Nathaniel Smith wrote: > > a > / \ > b c > |\ /| > | X | > |/ \| > b c > |\ / > | c <-- ambiguous clean merge > | | > b | > \ / > ? <-- another ambiguous clean merge! In that case, c should win, because although b beat c, c beat b's beating of c, therefore c wins. The problem with ambiguous clean isn't that both sides should lose, it's that both sides should win. In a normal conflict b and c have never seen each other. In an 'ambiguous' conflict both sides have seen each other and beaten the other one. So it really is affirmative on both sides. Here's another fun one, based on implicit undo: a / \ a b |\ /| | X | |/ \| a b |\ /| | X | |/ \| a b |\ /| | X | |/ \| a b In this case, which side wins depends on whether the number of layers is even or odd. That answer is actually obvious if you phrase it as 'the winner is the side which wasn't manually altered'. In the above diagram, alternating sides at each layer were altered, but that information isn't included in the diagram, so the confusing thing is the diagram, not the algorithm. > On the other hand, it was partly an exercise in seeing if it was > possible to make something that rigorous at _all_, and has the > simplest possible user model I could think of. So I definitely agree > there's room for improvement! Yes, it's a step in the right direction, but we want (well, I want) to pass all of these cases: a / \ d b \ / \ b c c wins a / \ | b | | b a b wins (implicit undo) a / \ | b | | b c c wins (convergence) I've become convinced that convergence is a great idea, because if you support it properly you magically get cherry-picking support for free, with no special support for it in the history. -Bram > > -- Nathaniel > > -- > Details are all that matters; God dwells there, and you never get to > see Him if you don't struggle to get them right. -- Stephen Jay Gould > _______________________________________________ > Codeville-devel mailing list > Codeville-devel@xxxxxxxxxxxxx > http://mail.off.net/mailman/listinfo/codeville-devel >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [Monotone-devel] Re: [cdv-devel] more merging stuff (bit long...), Bram Cohen |
|---|---|
| Next by Date: | Re: [Monotone-devel] Re: [cdv-devel] more merging stuff (bit long...), Nathaniel Smith |
| Previous by Thread: | ambiguous clean (was Re: [Monotone-devel] Re: [cdv-devel] more merging stuff (bit long...)), Nathaniel Smith |
| Next by Thread: | Re: ambiguous clean (was Re: Re: [cdv-devel] more merging stuff (bit long...)), Tim Woodall |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |