从ClearCase删除文件已在另一个分支上检出 [英] Delete file from ClearCase checked out on another branch

查看:103
本文介绍了从ClearCase删除文件已在另一个分支上检出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试删除ClearCase中的文件。当我尝试删除它时,我收到一条消息,指出该元素已签出。当我在文件上执行版本树时,我看到该文件已在另一个视图的另一个分支的另一个用户中签出。



如何删除此文件文件?另外,为什么ClearCase不让我删除此文件?

解决方案

您可以通过命令行和cleartool将其删除,方法是:强制删除(该选项在GUI中不可用)

  cleartool rmname -force theFile 

别忘了先签出父目录,然后签入同一父目录,以使每个人都看到您已经在所述目录中取消了对该文件的引用。 / p>

请参见


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?

解决方案

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".

这篇关于从ClearCase删除文件已在另一个分支上检出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆