ClearCase:如何在文件系统中删除的Shapshot视图中取消签出文件 [英] ClearCase: How to Uncheckout Files in Shapshot View Deleted From File System

查看:47
本文介绍了ClearCase:如何在文件系统中删除的Shapshot视图中取消签出文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

四个月前,一位同事有一个简明的视图,他从文件系统中删除了,而在某个分支上仍存在目录检出,例如分支 A。现在,有些目录已经过时,需要从其他视图中来命名,但这显然不会发生,尽管它们仍在分支A上检出。

Four months ago a colleague had a shapshot view that he deleted from the file system while there were still directory checkouts on a certain branch, say branch 'A'. Now some of directories are obsolete and need to be rmname'd from other views, but this cannot happen apparently while they are still checked out on branch A.

在分支a上 unco 这些目录的最直接方法是什么?

What is the most direct way to unco these directories on branch a?

推荐答案

您可以完全取消注册该视图(即使实际视图已从文件系统中删除)。

You can unregister completely this view (even if the actual view is gone from the filesystem).

请参见 清除情况:是否可以取消不是从您自己的视图进行的结帐?

cleartool rmview -force -uuid (uuid_of_the_view) -vob \aVob

作为副作用,它将触发移除此VOB中该视图(由其uuid引用)检出的任何文件的检出状态( -vob 选项)。

That will trigger, as a side-effect, the removal of the checkout status of any file checked out by this view (referenced by its uuid) in this vob (the -vob option).

更多信息,请参见 如何删除其他用户创建的清除案例视图?

cleartool lsview -l theViewToRemove # get its uuid
cleartool rmtag -view theViewToRemove
cleartool unregister -view -uuid uuid_of_viewToRemove

您甚至可以使用 nuke_view.pl 脚本

You even can use the nuke_view.pl script.


现在某些目录已过时,需要从其他视图中进行命名,但这显然不会发生,尽管它们仍在分支<$ c中检出$ c> A 。

我在 如何在ClearCase中删除文件?,即使不注销视图,即使已签出视图,仍然可以从分支中删除文件在另一个分支中。

您只需从命令行进行操作即可:

As I mention in "How do delete a file in ClearCase?", even if you don't unregister the view, you can still remove a file from a branch, even if it is checked out in another branch.
You simply need to do it from the command-line:

cleartool rmname -force /path/to/file






Eric Sc​​hnipke 建议在评论中


  • (1) cleartool lsview -l theViewToRemove 获取视图的UUID,然后

  • (2) cleartool rmview -force -uuid(uuid_of_the_view)-vob VaVob 删除视图和有问题的文件版本。

  • (1) cleartool lsview -l theViewToRemove to get the view's UUID and then
  • (2) cleartool rmview -force -uuid (uuid_of_the_view) -vob \aVob to remove the view and offending file version.

这篇关于ClearCase:如何在文件系统中删除的Shapshot视图中取消签出文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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