I am new to ClearCase, and I need to get who check-in a particular file last (ie: latest version).
I know the absolute path for the file.
What command do you recommend for me to access the user (ie the creator of the LATEST version) for that file?
I am new to ClearCase, and I need to get who check-in a particular file last (ie: latest version).
I know the absolute path for the file.
What command do you recommend for me to access the user (ie the creator of the LATEST version) for that file?
Try:
cleartool descr -l /path/to/file
If your view already select the latest version, that is enough.
You can also use fmt_ccase
to isolate only the information you need:
cleartool descr -fmt "%u" /path/to/file
If you view doesn't select the LATEST
version (which you can check by doing a cleartool ls
in the parent directory, and looking at the selection rule displayed there), you can use the extended path name to deduce its LATEST path:
cleartool descr -fmt "%u" /path/to/file@@/main/branch/subBranch/LATEST
See more at "clearcase latest version of a file on a particular branch", in order to find the exact extended path you want.