I'm trying reintegrate branch to trunk, but when i click "Test merge" in the TortoiseSVN, I get this message:
Command: Reintegrate merge https://127.0.0.1/svn/global/branches/somebranch into D:\wwwroot\work
Error: Reintegrate can only be used if revisions 8459 through 11952 were previously
Error: merged from https://127.0.0.1/svn/global/trunk to the reintegrate
Error: source, but this is not the case:
Error:
Error: branches/somebranch/file.js
Error:
Error: Missing ranges:
Error: /trunk/file.js:11059,11212,11392,11486,11719,11732-11733
Completed!
However, the file in the branch and in trunk exactly the same. This file was in the somebranch when i merge trunk to my branch.
Anyone encountered this problem?
I'm not an expert with SVN, but I think your answer is in: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-merge.html#tsvn-dug-merge-maintenance and http://svnbook.red-bean.com/en/1.7/svn.branchmerge.basicmerging.html#svn.branchemerge.basicmerging.stayinsync
In short: regardless of what your actual changes might be, you need to keep your branch in sync with trunk so that the reintegrate knows exactly what has and hasn't changed.
If you're only making changes in the branch and none in trunk, this is a non-issue. But once you've made a change or two in trunk, the branch needs to include those.