How do I switch to another subversion branch in Intellij?

JavaSvnVersioningIntellij IdeaBranch

Java Problem Overview


What is the concept of switching branches in IntelliJ? I must be either blind or an idiot...

I would assume there'd be a "switch to copy" option or something like that, but there is none...

EDIT for clarification: my prev IDE had a simple "switch to copy" option, which updated all files being different from current branch/trunk. IntelliJ seems to have a completely different approach to this, which I just do not seem to understand. The help is not very useful either.

Helpful keywords, links or hints are very much appreciated. Thanks.

Java Solutions


Solution 1 - Java

Just discovered switching branches is done using the update dialog (VCS -> Update Project, ⌘T), where I can select any branch, tag or revision I want.

Solution 2 - Java

For noobs like me that checked the "don't show this again" box in the beginning, and don't have the subversion update dialog prompting anymore, try this:

  1. Use the command menu "Version Control" -> Show Changes View
  2. In this view, go to tab "Subversion Working Copies Information"
  3. Here you should find a "Configure Branches" link were you should be able to switch trunk & branches

If I may say, this seems quite complex, if anyone has better, I would be glad to hear :-)

Solution 3 - Java

Just use the "Subversion" -> "Update Directory..." with options. In case the "Update options" dialog is turned off, here is how one can move it back:

  1. Go to: "Settings" -> "Version Control" -> "Confirmation"
  2. Check the box "Display options dialog ..." for "Update"

Solution 4 - Java

If like me you hit "configure branches", and then chose the path of the branch you want - this is wrong! when in "configure branches" you need to select the path one level up from there

hopefully this helps someone like me...

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPeterPView Question on Stackoverflow
Solution 1 - JavaPeterPView Answer on Stackoverflow
Solution 2 - JavaArnaud PView Answer on Stackoverflow
Solution 3 - JavaandrchView Answer on Stackoverflow
Solution 4 - JavalostyView Answer on Stackoverflow