How to determine the ClearCase directory version for a given file version?

Since ClearCase updates directory version numbers when files are created inside, our script configuration configuration is generated (details omitted).

So, as an example, given a file such as "/ proj / src / scripts / build.sh @ @ / main / branch42 / 3", how can we determine the latest version of the script directory that contains this version of the build.sh file .

Note. We are looking for a unix command line solution that can be scripted.

+3
source share
2 answers

ls /proj/src/scripts@@/main/branch42/*/build.sh/main/branch42/3, scripts, .../3 of build.sh. .

, , , -

cleartool find /proj/src/scripts --allversions --nonvisible -name build.sh -version 'brtype(branch42) && version(3)' -print

( , , )

+2

:

  • build.sh script ( )
  • ,
    element * SCRIPT_LABEL
    element /proj/... .../branch42/LATEST

, .

+1

All Articles