I've been using git my entire development life, and just recently got assigned to an antiquated sourcebase that is unfortunately still using IBM Clearcase for Windows for its version control. I've been struggling to get a grasp on the basics, mostly because there are many things that don't have a clear analog to git, and there isn't much support available for Clearcase since nearly every business no longer uses it.
My main problem is I can't figure out how to checkout a different branch. I've created a snapshot view of a VOB(so in git terms, a local repo cloned from a remote), and I believe I'm on the master branch. I'm looking at it in Rational ClearCase Explorer. I then open up the "Type Explorer", select the VOB I'm working with, and select "branch types". From here I can see every single branch that's been created.
Let's say I want to check out branch "my_branch". I don't see any appropriate selection from the context menu upon right-click in this Clearcase explorer. The only options are "Clone", "Delete", "Rename" and "Properties". From cleartool, I run the command
find ./ -branch 'brtype(my_branch)' -print
and it returns the following:
./\vob\path\to\changed\file\myFile.cpp@@\main\MYPROJECT\my_branch
That's the branch I want, and I believe what this command is telling me that my_branch has changed myFile.cpp compared to my current branch. I want to see how myFile.cpp differs on my_branch compared to master. Now if this were git, I'd want to checkout that branch. But, nearly everything I do using checkout doesn't work.
In Cleartool, I try:
checkout -branch \main\MYPROJECT\my_branch
and I get back:
cleartool: Error: Element pathname required.
I would've thought that \main\MYPROJECT\ was the pathname. So instead I try to see what happens if I check out just that one file with:
checkout -unreserved ./\vob\path\to\changed\file\myFile.cpp@@\main\MYPROJECT\my_branch
It returns:
Checkout comments for "./\vob\path\to\changed\file\myFile.cpp":
and hangs indefinately, and never checks out that file.
What exactly am I doing wrong? How the heck do I check out this branch that I can see into my local view? Any help is valuable and appreciated, since Clearcase is such an arcane relic of the past these days.