I would like to commit my changes in the branch and add those changes to the trunk version using the built-in svn tool in Android Studio. How can I do it?
Should I expec
As it says on this link of IntelliJ Doc (Android Studio and the Android plugin for IntelliJ IDEA are built from the same code)
To merge branch changes back into trunk, you should open trunk working copy and do same steps as when taking changes from trunk into branch (selecting source branch in popup). Additionally, you will be warned:
Merge information gathering rules To be able to merge changes back to trunk in a bunch (using Subversion “--reintegrate”), you should NOT have any merges done on other target that working copy root, i.e. you should not have any svn:mergeinfo properties set in working copy subtree. That’s why when checking what revisions are merge, by default, IntelliJ IDEA would not check merge information in a subtree. But if you somewhy need subtree to be checked, you should go to “Settings | Version Control | VCSs | Subversion” and set “Check svn:mergeinfo in target subtree when preparing for merge”.
More info and full doc can be located at: https://devnet.jetbrains.com/docs/DOC-1203
Edit:
Answering to Error: svn: E195016: Merge tracking not allowed with missing subtrees:
That error occurs when someone deletes something without using Subversion commands. If you were to run svn status on that working copy the same path that Subversion is complaining about should show with a !
in the first column of the output. Try using svn rm
instead of OS commands.
5 years later...
I am using Android Studio 3.1.5 and SVN.
To merge back a branch to its trunk:
-> TortoiseSVN -> Switch
.Version Control -> Subversion Working Copies Information -> Refresh
. See if URL field points to your trunk.Version Control -> Subversion Working Copies Information -> Merge From...
. In the small pop-up window, select the branch you want to merge to trunk. It may also ask for which directory or file in the said branch you want to merge. Make the appropriate selection.Select Merge Variant
window, most of the time I select Merge All because that is usually the goal. Click OK.NOTE: I prefer merging the trunk to my branch first. Resolve the conflicts in the branch, then finally, merge back to trunk.
I personally did it slightly different than the official docs. But basically making a branch is just copying the folder as I understand it. Merging on the other hand seems a little more complicated, as every reference of change has to be present. For instance deleting or moving a folder has to be a committed change, it can not just be done without a reference in SVN.
Also their way is to keep the main folders current name but making some subfolders name indicating that it is a branch.