I'm working with Subversion 1.7.x, and am doing my development on a branch.
From time to time I merge from trunk to keep the branch up to date.
During the latest merge, though, the incoming code, while totally correct in the trunk, doesn't compile in the branch.
And that's expected, because the code changed in the trunk has partially been rewritten in the branch several revisions ago.
Notice that the merge operation completed cleanly, there were no conflicts.
For the sake of clarity, when I say merge I mean the operation that modifies the working copy with code from another branch, no commit involved, i.e. just the svn merge [source] [dest]
.
Since that branch will ultimately be reintegrated to the trunk, I guess I have two alternatives:
- fix the compilation errors before committing the merged code;
- merge from trunk; commit (the merged code without edits); edit the code to fix the compilation issues; commit again (i.e. fix the compilation issues subsequently, performing a new, separate commit).
If I edit the merged code before committing it (i.e. I go with #1), will those changes be lost when reintegrating the branch?