I have an issue with Eclipse and Subversive.
I'm trying to reintegrate a branch of a project into the trunk.
These are the operations that I'm following:
Merge operation failed.
Can't overwrite cause with org.tmatesoft.svn.core.SVNException: svn: E195016:
Cannot merge into a working copy with a switched subtree
I don't understand what's wrong.
I'm using this Eclipse and SVN configuration:
Eclipse Java EE IDE for Web Developers.
Version: Neon.1 Release (4.6.1)
Build id: 20160913-0900
Subversive SVN Team Provider 4.0.3.I20161129-1700
SVNKit 1.8.14 Implementation (Optional) 6.0.3.I20161124-1700
SVN 1.9
Thanks in advance.
I don't know exactly why there is this issue, but I noticed that it occurs if we perform some "switch" operations between branches before the Merge operation.
For some reasons, in this situation it's avoided to perform a merge operation.
The "workaround" that I have found is to perform the merge operation on a clean copy of the trunk, after the SVN checkout of the trunk, without make any switch operation.
In this way, the error doesn't occurs any more.
It's not a practical solution, but it works.
Reintegration merges in SVN 1.8 and newer are done automatically, by default. Automatic reintegration merge cannot be performed in case your working copy is of mixed revision or has switched paths.
SVNKit might be working differently from actual Apache Subversion, though.
Read about automatic merges in SVNBook:
Your trunk working copy cannot have any local edits, switched paths, or contain a mixture of revisions (see the section called “Mixed-revision working copies”). While these are typically best practices for merging anyway, they are required for automatic reintegrate merges.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With