Clean up the latest version of a file on a specific branch

I know the filename with clearcase. How can I find the latest version of this file on a specific branch? It shouldn't fetch child branches. Also the names of the parent branches may not always be known.

Thank.

+2


source to share


1 answer


If you are using a dynamic view, you can access the version of a LATEST

given branch directly using the extended path

cat file@@/main/branch/subbranch/LATEST

      

If you don't know the exact branch path (parent branches) this version is stored in, you can change your dynamic view and add a selection rule first

element /path/to/file .../subbranch/LATEST

      

This will select the subbench version LATEST

in dynamic view.



Or you can do cleartool find

to see the full expanded path for that file
:

cleartool find . -name "yourFile" -ver "version(.../subbranch/LATEST)

      

You will be able to cat

(or type

on Windows) directly the result (which will be the full extended path)

The final for cat

or cleartool find

should be able to use the syntax .../subbranch/LATEST

.
This three-dot syntax means: " .../subbranch

" any branches that follow /subbranch

.

+6


source







All Articles