views:

179

answers:

1

Hopefully this makes sense: In subversion if I branch a trunk and then fork the branch can I merge changes from the trunk into the forked branch?

+2  A: 

This is really not very much different from merging from trunk into a "regular" branch. The only difference is that the branched branch will be rooted in a branch instead of trunk. If you're using Subversion 1.6 with merge tracking, you can do:

$ svn copy ^/trunk ^/branches/mybranch
... hack away in trunk ...
$ svn copy ^/branches/mybranch ^/branches/myforkedbranch
... hack away in trunk

# Merge from trunk to myforkedbranch
$ cd myforkedbranch-workingcopy
$ svn merge ^/trunk .
JesperE
Nice and simple. Thank you.
Nathan Taylor