SVN : Merge a branch back into the trunk

How to copy a branch called V2 into the trunk :

I. find the first revision "V2"

in V2 directory type :
[pene@donunix] svn log --stop-on-copy

note the latest revision number displayed (for us it's 270)

II. find the latest V2 revision

in V2 directory type :
[pene@donunix]svn up

note the revision number displayed (for us it's 1603)

III. merge the branch into the trunk

in V2 directory type :
[pene@donunix]svn merge -r270:1603 https://my.svn.server/path/code/branch/V2

and commit:
[pene@donunix]svn ci -m "Merge V2 branch back into the trunk"

No comments: