I have a long-lived feature development branch, let’s call it dev-foo. The problem is that when I try to merge it into release-1, I get all kinds of horrible tree-conflicts and source conflicts that don’t make any sense. I’ve re-integrated them into a new trunk-based branch, along with other features that want to be integrated together. Every merge that I attempt to do to or from this integration branch is similarly horribly conflicted. What can I do?
I have a long-lived feature development branch, let’s call it dev-foo. The problem is
Share
I strongly suspect that one of the merges from trunk in your development branch was accidentally broken by you somewhere in the process of resolving conflicts and committing it. This means that the merge history of your development branch is “poisoned” and merging it will only prolong the pain and suffering for you and everyone else.
Take heart, all is not lost!
Here is the method that I used to “reconstruct” broken development branches for the purposes of re-integration without bringing in the previous broken merges from trunk:
was started.
branch – up to, but not including, the next merge from its parent
branch (trunk).
reconstruction branch the same revisions that were merged in at the next step in the
original dev-branch history. Don’t get it wrong this time.
Justify or fix any differences before you move on.
until you’ve reconstructed the entire development-branch, but
without the merging problems.
into the reconstructed development branch.
conflicts and test the build.
development branch into the target branch.