tags:

views:

403

answers:

4

Hi,

I'm trying to do an svn merge of a change from trunk onto a branch (2001). The change is in trunk on revision 614.

I've tried the following and none of them do what I want :

$svn merge

08:19 AM[~/views/2001/platform/L3/src]$svn merge -r 614:HEAD https://secreturl/trunk

But this seems to pick up a lot of changes I don't want.

When I ran : svn log -r 614 https://secreturl/trunk - I saw the checkin comment for the small subset of changes I wanted to merge. What am I missing here?

+3  A: 

I think you want -r 613:HEAD. If you JUST want change 614, do -r 613:614.

jeffamaphone
SVN requires the merge to be specified with the previous number. You will see that when SVN performs that merge that the correct revision umbers will be checkedout in your branch.
potyl
+2  A: 

svn log -r 614 will show you the specific 614 revision. If you want to just merge the results of r614, do this:

svn merge -r 613:614 https://secreturl/trunk

That is, merge the changes from 613 to 614.

Daniel Lew
Thanks - this is what I was looking for. Thanks to the rest of you for answering as well.
Amir Afghani
Hmm, this still doesn't seem to be working. Here's what I tried :08:55 AM[~/views/2001/platform/L3/src]$svn merge -r 613:614 https://secreturl/trunkMy hope is that the changes will get merged into my 2001 view, which I've cd'ed into. But the results of the merge are empty. I would expects some updates given what I see is different in the two branches.
Amir Afghani
+3  A: 

svn merge -r 614:HEAD https://secreturl/trunk will merge all changes between revision 614 and HEAD. Moreover, it will take 614 as the base revision (probably not what you want happenning :)

To merge changes from a specific revision, you can use one of two methods:

$ svn merge -c 614 https://secreturl/trunk or $ svn merge -r 613:614 https://secreturl/trunk.

The first means apply changes in revision 614 only, while the second form means take all changes required to go from r613 to r614 and apply them here.

A: 

Good site to help you along
Link 1

Phill Pafford
I read that link Phil, and frankly it wasn't clear. I know, RTFM, but after RTFMing I still didn't get it.
Amir Afghani
What version of Subversion are you using?
Phill Pafford