tags:

views:

785

answers:

2

I'd like to merge all the changes that took place between rev 10 & the HEAD rev on http://url-of-branch-a and apply them to http://url-of-branch-b.

Something like...

svn merge -r 10:HEAD http://url-of-branch-a

Is this possible? If so, what is the syntax?

I am running the SVN client from the unix command line. The SVN client version is 1.4

EDIT: Yes, my specific solution was...

  1. change directory to the location of my working copy that wants to receive the changes (branch-b)
  2. svn merge -r 10:HEAD http://url-of-branch-a

This merges the changes from 'branch-a' into 'branch-b'

+6  A: 

Checkout URL A. Use SVN merge to merge URL B to your working copy of A. Commit A.

Or vice versa of course :)

Billy3

Billy ONeal
Thanks. This got me thinking about the issue in the right way. made for an easy solution
+2  A: 

It's a three-step process (as BillyONeal shows).

  1. Establish a working copy of branch B (svn checkout http://branch-b)
  2. Merge changes from branch A into working copy of B (svn merge -r 10:HEAD http://branch-a .)
  3. Commit (after resolving conflicts) working copy B to branch b (svn commit)

Check the man page (help file) for svn merge semantics. It shows you that svn merge always dumps the results into a working copy.

Check out the "redbook" for all the details.

Jamie Hale
makes total sense now. thanks!