如何撤消签出从其他用户签出的文件?

时间:2015-04-30 07:18:07

标签: clearcase

在此示例中,user5628(实际上是病态的)在其动态视图中具有签出文件。如何取消此结帐?

$ ct lsco -all | ag foo
2013-08-29     user52001    checkout version "L:\a\path\foo.c" from \main\branch_a\0 (reserved)
2014-04-10     user5030     checkout version "L:\a\path\foo.c" from \main\branch_b\0 (reserved)
--11-18T08:29  user52212    checkout version "L:\a\path\foo.c" from \main\branch_c\1 (reserved)
--04-15T14:24  user5628     checkout version "L:\a\path\foo.c" from \main\branch_d\11 (reserved)
--04-30T08:05  user5072     checkout version "L:\a\path\foo.c" from \main\branch_d\11 (unreserved)

1 个答案:

答案 0 :(得分:3)

正如我在" ClearCase: Is it possible to cancel checkouts not made from your own view?"中提到的,最简单的方法是删除"结帐" user5628视图的状态。

cleartool descr -l vob:\avob
# get user5628 view uuid in the output
cleartool rmview -force -uuid (uuid_of_the_view) -vob \aVob

这不会修改任何user5628签出的文件(修改不会丢失),但是user5628必须再次检查它们。

当您拥有old checked out files in a view which has since then been deleted时,同样的技巧非常有用。