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

Re: Merge problems

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-05-20 22:26:13 CEST

On Thu, 2004-05-20 at 13:52, Anil Arora wrote:

> Rowsource is a copy of the main line at revision 234.
> At some point, our main line is at revision 253. So, I want run the
> following command in the working directory for rowsource
> svn merge –r 234:HEAD svn://subversion.interlacesystems.com/main

Great. So now your working copy of rowsource has all the changes that
happened on 'main' between r234:253.

> Before I commit (hours later), there have been numerous changes to the
> main line and now it’s on revision 270.
> I commit my changes on my project branch.
> Now I want to run a merge again from the main line to the project
> branch. What is the command that I need to run?
> svn merge –r 253:HEAD
> svn://subversion.interlacesystems.com/projects/rowsource

Wrong. You want to compare two snapshots of 'main' again, and apply
them to your rowsource working copy. Exactly like you did the first
time. But now you want to compare snapshots of 'main' at r253 and r270:

svn merge –r 253:HEAD svn://subversion.interlacesystems.com/main

> This is way too confusing.

What's confusing? Here's the simplest possible explanation of 'svn

The merge command compares two trees, and produces a patch. It then
applies that patch to your working copy as a local mod.

So, if you're merging "branchA" to "branchB", you always want to compare
two snapshots of branchA, and apply them to a branchB working copy.
This holds true even when you're doing repeated merges in the same

You're 90% of the way there. You just got confused on the repeated
merge attempted, and decided to compare two snapshots of the wrong

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 20 22:31:13 2004

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.