3

I am using IntelliJ IDEA 12.1. How to check out the HEAD of a CVS branch?

I can only check out the HEAD of the main stream, or a tag.

Zoe
  • 27,060
  • 21
  • 118
  • 148
chance
  • 6,307
  • 13
  • 46
  • 70

1 Answers1

4

The CVS integration in IDEA is a bit strange in that regard. You need to create a new CVS Configuration (i.e. CVS Root) for the branch. So rather than having a single connection configuration that you use to connect and then select a branch, you need a separate connection configuration for each branch. In the CVS Root dialog, you define the branch.

enter image description here

[EDIT]

Remember that in CVS, a branch is just a sticky tag and thus why you enter the branch name in the "By tag" field.

Javaru
  • 30,412
  • 11
  • 93
  • 70
  • Thanks for your answer, but it does not work for me. In deed, I was able to create an IDEA module from a "branch" of CVS by using a new configuration CVS just like what you had said, but, I am not able to make any commit for modified files. The error message reads: `sticky tag for file is not a branch`. – chance Oct 14 '13 at 07:22
  • I have found a solution to that error in IntelliJ 12.1 Web Help [page](http://www.jetbrains.com/idea/webhelp/resolving-commit-errors.html). I updated the file with resetting sticky data and then I was allowed to commit my changes. – chance Oct 14 '13 at 07:47