Delete file from ClearCase checked out on another branch

孤街浪徒 提交于 2019-11-30 19:43:24

问题


I am trying to delete a file in ClearCase. When I attempt to delete it I get a message that the element has checkouts. When I do a version tree on the file I see that the file is checked out by another user, in another view, on a different branch.

How do I delete this file? In addition why doesn't ClearCase let me delete this file?


回答1:


You can delete it through the command line and cleartool, by forcing its delete (option which isn't available with the GUI)

cleartool rmname -force theFile

Don't forget to checkout the parent directory first, then to checkin that same parent directory, in order for everyone to see that you have dereferenced that file within said directory.

See cleartool rmname:

–f/orce:

Forces the removal of the name when there is at least one checkout of the element.
When used with –nco, suppresses the prompt for confirmation.

That will work even when you had this before:

, as explained in the technote "About cleartool rmname and checkouts".



来源:https://stackoverflow.com/questions/5215467/delete-file-from-clearcase-checked-out-on-another-branch

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