Clean up the latest version of a file on a specific branch
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
.
source to share