ClearCase: How do I find which version I branched off from?

前端 未结 2 1222
遥遥无期
遥遥无期 2021-01-15 08:59

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

2条回答
  •  半阙折子戏
    2021-01-15 09:54

    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
    

提交回复
热议问题