For a given file, say I branched off from /main/2
and do my development in that branch newBranch
. cleartool diff -pred
would compare m
Which ClearCase command would I pass either the file name or /main/newBranch
and would return /main/2
?
You can try using cleartool lsvtree, which will list all versions of a file.
cleartool lsvtree myFile | grep main | head 1
As noted, cleartool describe is easier.
How can I still compare it to where it was branched off from (
/main/2
)?
You can use the /main/newBranch/0
, 0
being the placeholder version created for each new branch, here identical to /main/2
, using cleartool diff:
cleartool diff -pred yourFile yourFile@@/main/newBranch/0
For my purposes, cleartool describe -short -pred <version0-of-child-branch>
did the trick. For my example, this would be cleartool describe -short -pred /main/newBranch/0
.