[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: What is the algorithm for 'svn merge'?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-03-25 17:42:12 CET

On Mar 25, 2005, at 9:50 AM, Karan, Cem ((Civ, ARL/CISD)) wrote:

> Hi all, I'm hoping someone can explain this to me. What is the
> algorithm behind svn merge? I ask because I see that svn can
> automatically merge changes. I can see that this is easy to do if the
> changes between two files are actually identical, but how does it
> handle things when there are differences? How does it decide which
> changes go into the files and which get left out? I just want to make
> sure that my C code doesn't suddenly start acting funky due to a
> merge...

It's a basic diff3 algorithm. 'man diff3' to learn about it and play
with GNU's implementation of diff3.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 25 17:44:51 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.