如何使用ClearCase cleartool查找所有检出的文件? [英] How to find all checkedout files with ClearCase cleartool?

查看:247
本文介绍了如何使用ClearCase cleartool查找所有检出的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图与Hudson设置我们的ClearCase 以进行持续集成(并在以后进行部署)。

I'm trying to setup our ClearCase with Hudson for a continuous integration (and deployment later).

我终于得到了UCM查看该版本,但很遗憾,我们的构建过程会检出文件以存储内部版本号。 现在构建失败,并且文件仍被检出,防止下一个构建

I finally got a UCM view for the build, but unfortunatly our build process checks out files to store the build number. Now the build broke and the file is still checked out, preventing the next build.

我现在已经知道 cleartool查找。 -f ,但我不知道如何查找已签出的文件。我知道UNIX find的语法,所以这不是问题。

I already now about cleartool find . -type f, but I can't figure out how to find checked out files. I know the syntax of UNIX' find, so that isn't a problem.

有人可以指出我查询语言的文档吗,或者举个例子查找签出或被劫持的文件?

Can someone point me to a documentation of the query language or maybe give an example to find checked out or hijacked files?

推荐答案

您可以在如何列出私人文件

然后,这取决于ClearCase视图的性质。

例如,在动态视图上,一个简单的 ct lsprivate 列出了私有文件(包括被劫持的文件) )和检出文件。

Then it depends on the nature of your ClearCase view.
On a dynamic view for instance, a simple ct lsprivate list private files (including hijacked ones) and checkout files.

官方命令是 cleartool lscheckout (或' lsco ')。

如果您在视图内的右侧VOB内:

The official command is cleartool lscheckout (or 'lsco').
If you are within the right vob within your view:

$/path/to/view/vobs/aVob
cleartool lsco -rec -cview

,应列出

但是如果由于在几个 vobs中检出的文件而使您的构建被破坏,则所有从该用户检出的文件都位于该vob的任何子目录中。您需要扩大范围:

But if your build is broken because of files checked out in several vobs, then you need to widen the scope:

$/path/to/view/
cleartool lsco -avobs -cview

(在这种情况下,您不必位于特定的VOB中)

(you don't need to be in a specific vob in this case)

Manjunath K Mayya 指出在评论中


仅列出文件名,而不列出版本详细信息,我们可以使用 < short

cleartool lsco -short -avobs -cview


这篇关于如何使用ClearCase cleartool查找所有检出的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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