ClearCase Common Workflow Example

ε祈祈猫儿з 提交于 2019-12-06 00:31:12
VonC

You can see the main differences between Git and ClearCase here, to get you started.

Use Case 1:

Yes, which is why it is advised to use one stream if possible, instead of the native "one stream per developer" model (that I denounced here)

Use Case 2:

You can use some commands based on lsco | ci, as in this answer.
I detail that approach in "Recursive checkin using Clearcase"

ct lsco -r -cvi -fmt "ci -nc \"%n\"\n" | ct
ct lsco -r -cvi -fmt "unco -rm %n\n" | ct

Use Case 3:

Yes, you need to checkout a file, before modification and checkin, unless you modify it directly in a snapshot view, as an hijacked file; or in a dynamic view as an eclipsed file.
See for instance "Eclipse not allowing to modify files without checkout in ClearCase" as an illustration of that issue.

Use Case 4:

cleartool mv will do that for you (as I mentioned here), but you need to checkout the parent folder first.

The directory where the element to be moved or renamed resides must be checked out. The destination directory must also be checked out; this directory may be the same as the source directory.

Use Case 5:

If I am just working on one stream, is it necessary to have views on all the other streams?

No, those views don't have to be started or even created.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!