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

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

问题描述

例如,当前的配置规范是element */main/LATEST".有一个文件A.txt",它的当前版本是3,并且之前在它的版本2上应用了一个名为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.

我想要一个命令来查询当前版本上没有标签LB"的所有文件.

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

显然,文件A.txt"应该符合查询条件.

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

clearcase命令怎么写?

How to write the clearcase command?

推荐答案

那个命令可以帮助你:

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

这将打印 /main/LATEST 中尚未带有LB"标签的所有版本(此处的文件).

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

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

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