What's the “proper” way to delete files from a ClearCase snapshot?

南楼画角 提交于 2019-12-04 04:00:31

If you delete the file from the ClearCase Explorer, you shouldn't have any issue: it will

  • checkout the parent directory
  • rmname the file
  • checkin the parent directory

But if you do it directly from a shell or a Windows Explorer, then ClearCase won't be informed of the operation, hence the "??" checked-out-but-removed status.

With a dynamic view, you cannot remove a file without ClearCase knowing about it, since a dynamic view is an encapsulation of the file system managed entirely by ClearCase.


Now let's suppose you have deleted a bunch of check-out files directly from the native filesystem (not from the ClearCase Explorer or an IDE with a ClearCase plugin), and that you want those files to stay deleted!

Then a way to reconcile the two status would be to:

  • cleartool update . (at the root directory of the snapshot view)
  • parse the generated ".updt" file and for each checked-out file, rmname it (like in this article)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!