Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [cdv-devel] Re: precise codeville-merge reference now available: msg#00012

version-control.revctrl

Subject: Re: [cdv-devel] Re: precise codeville-merge reference now available

Here are some examples of weird merge cases, I'll skip ascii art in favor
of just giving the depedencies

Annotation is that X, Y -> Z('12') means 'revisions X and Y were merged to
form revision Z, which contains lines 1 and 2, in that order'. Asterisks
indicate clean merges.

A('')
A -> B('2')
B -> C('')
A -> D('2')
D -> E('')
B, E -> F('2') *
F -> G('12')
C, D -> H('2') *
H -> I('23')
G, I -> ?

In this case line 2 got deleted on both sides, so it should be deleted in
the descendant. The most broken behavior here is to clean merge to '123',
which is what sloppy codeville merge does. Somewhat less broken is to show
a conflict between '12' and '23', although that largely ensures that an
end user will put 2 in the cleanup, which shouldn't happen. About equally
broken to the last behavior is to show a conflict between '1' and '3',
which might look reasonable, but it's possible that both lines 1 and 3
have a strong dependency on line 2, so displaying them alone is garbled.

I think the best approach is to display more information than is
traditionally done in conflict cases.

Here's another wacky case:

A('')
A -> B('1')
B -> C('')
C -> D('1')
B -> E('')
E -> F('1')
C, F -> G('') *
D, E -> H('') *
A -> I('2')
I -> J('')
J -> K('2')
I -> L('')
L -> M('2')
J, M -> N('') *
K, L -> O('') *
G, N -> P('') *
H, O -> Q('') *
P, Q -> ?

This is a very strange case - both lines '1' and '2' should come back now,
but neither of them has ever appeared next to the other before, so their
order is ambiguous, and they may be completely garbled next to each other.

Again, I think the solution is to provide more information than is
traditionally done. '1' and '2' should both appear in the result, with an
arbitrary order and conflict annotation indicating what happened and that
the resulting code may be garbled.

-Bram


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation