如何列出没有完全合格版本的Clearcase版本? [英] How do I list Clearcase versions without the Fully-qualified verison?

查看:94
本文介绍了如何列出没有完全合格版本的Clearcase版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Clearcase中:
我正在尝试查找当前视图中所有文件的名称,但没有特定的标签。到目前为止,我已经提出了以下建议:

In Clearcase: I'm trying to find the names of all files in the current view without a specific label. So far I've come up with the following:

cleartool find -cview -all -version'\!lbtype(LABEL_1)'-打印

但这最终显示了文件名,并在文件名后附加了 @@ / main / BRANCH1 / SUBBRANCH。我只想添加文件名。

But this ends up displaying the filenames with the "@@/main/BRANCH1/SUBBRANCH" appended to the end, and I really want just the filename.

我尝试添加-short,但是find命令不喜欢该选项,并且在

I've tried adding a -short, but the find command doesn't like that option, and I can't find an option in the manuals to change the behavior.

推荐答案

发现了它:


–nxname

从每个选定对象的名称中删除扩展的命名符号(默认为@@)以及任何后续版本ID或分支路径名。此转换产生的重复名称将被抑制。实际上,此选项将扩展名称转换为标准操作系统名称;

–nxname
Removes the extended naming symbol (by default, @@) and any subsequent version ID or branch pathname from the name of each selected object. Duplicate names that result from this transformation are suppressed. In effect, this option transforms extended names into standard operating system names; it also transforms names of branches or versions into names of elements.

所以

 cleartool find . -cview -nxn -version '\!lbtype_sub(LABEL_1)' -print

打印所有文件当前视图和没有标签LABEL_1的目录(和子目录)

prints all files in the current view & directory (and subdirectories) without the label LABEL_1

这篇关于如何列出没有完全合格版本的Clearcase版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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