ClearCase:如何查找未标记为“ LB”的文件。根据配置规范选择的当前版本 [英] ClearCase: How to find files not labelled with "LB" on CURRENT Version selected by config spec

查看:68
本文介绍了ClearCase:如何查找未标记为“ LB”的文件。根据配置规范选择的当前版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,当前的配置规范为 element * / main / LATEST。
有一个文件 A.txt,当前版本为3,以前在其版本2上应用了名为 LB的标签。



I想要一个命令来查询其当前版本上没有标签 LB的所有文件。



很显然,文件 A.txt应符合查询条件。 / p>

如何编写clearcase命令?

解决方案

该命令可以帮助您:

  cleartool find。 -type f -version version(/ main / LATEST)&&!lbtype(LB) -print 

这将在 / main / LATEST 中打印所有尚未使用' LB '标签。


For example, the current config spec is "element * /main/LATEST". There is a file "A.txt", its current version is 3 and a label named "LB" was applied on its version 2 before.

I want a command to query all files which do not have the label "LB" on its current version.

Obviously, file "A.txt" should meet the query.

How to write the clearcase command?

解决方案

That command could help you:

cleartool find . -type f -version "version(/main/LATEST) && !lbtype(LB)" -print

That will print all the versions (files here) at /main/LATEST that haven't yet the 'LB' label.

这篇关于ClearCase:如何查找未标记为“ LB”的文件。根据配置规范选择的当前版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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