I have a given file on a given child stream. I want to compare the version on the stream to the same element on another stream. To do this, I need to figure out if the file has been moved on the child stream so I know what name to look for on the parent stream. However, there doesn’t seem to be an easy way to find rename events using the command line tools.
The only way I could find was to use cleartool diff on each version of the parent directory to look for the diff containing the rename, but it seems like there should be an easier way.
The main options are summarized by this thread and mention a search based on the OID o the file.
But I would first try a
cleartool lsvtree:Try that from the “source” view (that is the one selecting the file with its current name in the current branch), and see if the
lsvtreeis able to display the version of that same file on the other branch.The OP bradtgmurray reports:
lsvtreelists element history with the current name for whatever stream, which isn’t what is needed for detecting renamed file.cleartool desc -fmt '%On' <filename>@@in the child andcleartool desc -fmt '%n' oid:<oid>in the parent.