How do delete a file in ClearCase UCM?

拥有回忆 提交于 2019-12-08 08:37:05

问题


I'm trying to delete a single version-controlled file in ClearCase. I already know that I'm supposed to check out the parent directory and its checked out.
I don't know if I'm supposed to check out the file I going to delete.

If I don't check out the file I get the error:

cleartool: Error: Not a vob object: "MyFileName".

If I do check out the file I get:

cleartool: Error: Element "MyFileName" has checkouts.

So ClearCase knows it's one of its files – but it doesn't want to delete it. I'm just baffled.
I've already updated and rebased repeatedly.

How do I move forward here?


回答1:


If you see that error message "has checkouts", you need to do the command in a shell:

cd /path/to/view/your/view/path/to/parent/folder
cleartool rmname -force yourfile
cleartool checkin -nc .

See more at:

  • "Delete file from ClearCase checked out on another branch", and
  • The IBM technote "About cleartool rmname and checkouts".

The OP Tony Eastwood reports in the comments:

The issue seems to have been caused by me:

  • checking out the parent directory,
  • unchecking the parent,
  • and then checking out the parent directory again.

Surprisingly, once you've done this you have to run an update (even though you have made no changes).
Once I'd run update it was happy to execute the rmname command.



来源:https://stackoverflow.com/questions/20048285/how-do-delete-a-file-in-clearcase-ucm

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