Search code examples
clearcaseclearcase-ucmcleartool

How to change configspec of a dynamic view in clearcase for a specific track


I am new to IBM ClearCase.
I have a dynamic view with named "current_view". I am able to set it to the default config spec with the below command.

cleartool setcs -tag current_view -default .

But now I am trying to set it into specific track.

So how should I give the argument in place of "-default", so that config spec will get changed from default to specific configspec?

And one more info I want to know , when I am setting config spec to any specific track from which location and which file "setcs" command is reading the track information.


Solution

  • One option is simply to edit the config spec with cleartool edcs:

     cd /view/myView
     # or
     cd M:\myView
    
     cleartool edcs
    

    Edit the config spec, and add your branch you want to follow

    element * CHECKEDOUT
    element * .../yourBranch/LATEST  <=== Add this line
    element * /main/LATEST
    

    Save and close: the dynamic view content will automatically adjust to your new selection rules.


    You could also edit your condif spec in a file, and use that file as an argument of cleartool setcs

     cd /view/myView
     # or
     cd M:\myView
    
     cleartool setcs afile
    

    That way, you can script the all process (no interactive step)