1

In the clear case, I want versions of the file in the particular directory with complete file path. By right click on the file and after that going for properties in the file it is possible to take, but in case in the directory 100 files are there, so it will become very huge task. I want to know the clear tool command , which i can execute from the command prompt and after that I can redirect output to some text file

Example of path I am using:

M:\My_Project\Verif_Folder\TP\Functional_TP\ETP\  here
Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56

1 Answers1

1

Check the command cleartool find, combined with a cleartool describe and fmt_ccase option:

cd M:\Myproject\...\here
cleartool find . -type f -exec "cleartool describe \"%CLEARCASE_XPN%\" -fmt \"%Xn\""

%Xn: Extended name: Same as default

%n output, but for checked-out versions, append the extension @@\branch-pathname\CHECKEDOUT

The result will be the path of the file, its name, and its extended path including its current selected version.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250