Reputation: 43797
In SVN I have two branches, 1.0 and 2.0. If I fix an issue in 1.0, how do I merge that fix into 2.0 and vice versa?
Consider the following scenario:
I suppose I can always force that fixes are made on the 1.0 branch first or I could manually block the X+1 revision on the 1.0 branch. Both of these are non-ideal and I was wondering if there were a better way to handle sibling branches.
Upvotes: 0
Views: 550
Reputation: 682
The 'best' way is going to depend on the purpose of your branches.
For example, if branch 1.0 is for bug fixes and branch 2.0 is for testing then it makes sense to do all fixes on 1.0 first, then push to 2.0.
If they're different projects and you want to cherrypick which features get merged between branches then you could use the trunk as the centralised point.
If both branches are going to have the same files and changes and neither is authoritative it begs the question do you really need both?
Ultimately, you're going to have conflicts if both branches involve making changes on the same files, it's just down to your circumstances as to which is less hassle to deal with day to day.
Upvotes: 1