You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Javier Ruiz <ru...@gmail.com> on 2006/06/06 19:48:12 UTC

Automerge algorithm ...

Hello,

We use subversion extensively in our projects and thus far we've been very
successful. However, every now and then it seems  that subversion isn't
updating files correctly; but I haven't been able to find evidence to this
effect. This feeling, however, sometimes reduces the confidence of
developers in the merge process.

In order to be proactive and address their questions about how the merge
works I've been searching for the details on how it merges two files (say
Java or Javascript files) but haven't been able to find this information.
Does anyone know where I can find these details?

Thanks,
Javier

Re: Automerge algorithm ...

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 6/7/06, Kevin Greiner <gr...@gmail.com> wrote:
>
> On 6/6/06, Javier Ruiz <ru...@gmail.com> wrote:
>
> >
> >
> > In order to be proactive and address their questions about how the merge
> works I've been searching for the details on how it merges two files (say
> Java or Javascript files) but haven't been able to find this information.
> Does anyone know where I can find these details?
>
>
> This appears to be what you're looking for:
> http://subversion.tigris.org/variance-adjusted-patching.html

No it isn't, that's a theoretical way we could take advantage of merge
history when applying diffs, but svn doesn't actually do it now.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Automerge algorithm ...

Posted by Kevin Greiner <gr...@gmail.com>.
On 6/6/06, Javier Ruiz <ru...@gmail.com> wrote:
>
>
> In order to be proactive and address their questions about how the merge
> works I've been searching for the details on how it merges two files (say
> Java or Javascript files) but haven't been able to find this information.
> Does anyone know where I can find these details?
>

This appears to be what you're looking for:
http://subversion.tigris.org/variance-adjusted-patching.html

Re: Automerge algorithm ...

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 6, 2006, at 21:48, Javier Ruiz wrote:

> We use subversion extensively in our projects and thus far we've  
> been very successful. However, every now and then it seems  that  
> subversion isn't updating files correctly; but I haven't been able  
> to find evidence to this effect. This feeling, however, sometimes  
> reduces the confidence of developers in the merge process.
>
> In order to be proactive and address their questions about how the  
> merge works I've been searching for the details on how it merges  
> two files (say Java or Javascript files) but haven't been able to  
> find this information. Does anyone know where I can find these  
> details?

A merge is nothing more than diff and patch.

Let's say you were going to merge a change from revision 42 of a  
branch into a working copy of the trunk:

$ cd trunk
$ svn merge -r41:42 $REPO/project1/branches/branch1 .

All Subversion is doing is getting a diff between revision 41 and 42  
of the branch and applying it to the working copy. You can see this  
diff yourself now after the merge by using:

$ svn diff

To show you that this is in fact the same as the diff between those  
revisions in the repository, you can do the diff there:

$ svn diff -r41:42 $REPO/project1/branches/branch1

Do note that although these text representations of diffs don't show  
some changes, like additions or deletions of directories, or maybe  
some properties, or the contents of binary files, Subversion does of  
course make use of all that information when you use svn merge.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org