Search code examples
clearcaseclearcase-remote-client

How can I checkout a version of a file from another branch with Clearcase Remote Client


I'm using the Clearcase Remote Client 7.1.2 (and I only have it available)

I have a file which has 2 branches, branch1 and branch2. branch1 is configured to be the default branch in config spec. I want to checkout a version of the file from branch2, but there is no such option in Version Tree Browser when I click any version of the file on branch2. I can only checkout the latest version on branch1.

What am I doing wrong? Is there a configuration that will allow me to checkout any version I want?


Solution

  • A (CCRC web-)view is always defined to work at the latest version possible (LATEST) of a specific branch.

    The CLI associated with CCRC doesn't include 'get' (presented in the second part of "In ClearCase, how can I view old version of a file in a static view, from the command line?"

    If your view isn't an UCM view, you could add a selection rule at the start of your config spec (See CCRC edit config spec):

    element /vob/path/to/file .../branch2/x
    

    with x a version number from branch2.
    However, I don't remember if you have access to the actual config spec source with CCRC.