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

查看:30
本文介绍了如何使用 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 find .-type 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").
如果您在您的视图中处于正确的位置:

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

,应该列出该vob的任何子目录中任何用户的所有检出文件.

,should list all checked out files from any user in any sub-directories of said vob.

但是如果你的构建因为在几个 vobs中签出的文件而被破坏,那么你需要扩大范围:

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 指出的那样 在评论中:

As Manjunath K Mayya points out in the comments:

只列出文件名,不列出版本信息,我们可以使用short":

To list only the file names, without the version details, we can use "short":

cleartool lsco -short -avobs -cview

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

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