Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn merge with revision not doing what I expect

Tags:

svn

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
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?

like image 256
Amir Afghani Avatar asked Dec 08 '22 07:12

Amir Afghani


1 Answers

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.

like image 102
user9755 Avatar answered Dec 17 '22 08:12

user9755