SVN switch

How do I do a "svn switch"?

Sample scenario: switch to a branch, implement fix in a branch, commit it to that branch and switch back to trunk.

6 comments

Update project, then select the branch in the dialog that appears?!
(If no dialog appears then check Settings -> Project Settings -> Version Control -> "General Settings" tab -> Display options dialog -> Update)

But usually I simply check out both branches separately and have two Idea projects.


dota168 wrote:

How do I do a "svn switch"?

Sample scenario: switch to a branch, implement fix in a branch, commit it to that branch and switch back to trunk.

1

Actually the Update with switch option checkbox checked in IDEA 7.0.1 is not working. It will mess up the whole project half of the files being switched and half not.

I had to use Switch in TortoiseSVN to get to usable project again.

0

Hello Steve,

Actually the Update with switch option checkbox checked in IDEA 7.0.1
is not working. It will mess up the whole project half of the files
being switched and half not.

I had to use Switch in TortoiseSVN to get to usable project again.


Same here. Reported at http://www.jetbrains.net/jira/browse/IDEA-16435

Best,
Andrei


0

One more thing. Today I did another switch. This time I did not bother to do it in IDEA and did it directly in Tortoise. After going back to IDEA all files have been refreshed. At least it looked like it. But then I could not compile. Some files have been in old version even that the version history in IDEA reports contrary. After IDEA restart everything is ok.

This brings back another issue that you can't tell in IDEA which file version you have (for SVN). Obviously SVN history window is misleading sometimes. For CVS there used to be a special browser window which I used to like.

So don't forget to restart IDEA!

0

Worked fine for single files. Thanks for the tip.

0

double post. sorry

Message was edited by:
dota168

0

Please sign in to leave a comment.