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

前端 未结 2 1180
遥遥无期
遥遥无期 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
    
    0 讨论(0)
  • 2021-01-15 09:58

    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.

    0 讨论(0)
提交回复
热议问题