我认为这不能用cleartool find 来获取文件的所有最新信息来完成
基本上我想做:
cleartool find . -version 'version(.../LATEST)' -print
| egrep '\\.[CH]@@'
| xargs -I {} grep 'TEXT' {} \;
但是如果使用 .../
,版本需要分支名称,并且我想获取文件的所有分支。
我知道您可以使用 -branch '\!attype(dummyname)'
来欺骗并获取所有分支,但分支名称只是第一步。
我希望能够 grep 所有分支上的所有 LATEST
版本以及 VOB 中的主 for -name '*.[CH]
' 文件。
我制作了一个脚本来使用上面的虚拟名称来获取所有分支,grep '\\.[CH]@@
',将 LATEST
附加到它并 grep 该文件名对于我正在寻找的东西,但这样做非常慢。
Basically I would like to do:
cleartool find . -version 'version(.../LATEST)' -print
| egrep '\\.[CH]@@'
| xargs -I {} grep 'TEXT' {} \;
But version requires a branch name if using .../
and I want to get all branches for the files.
I know you can cheat and get all branches by using -branch '\!attype(dummyname)'
but the branch name is only the first step.
I would like to be able to grep all of the LATEST
versions on all of the branches and the main for -name '*.[CH]
' files in the VOB.
I have made a script to use the above dummyname to get all branches, grep '\\.[CH]@@
', append LATEST
to it and grep that file name for what I am looking for but it is very slow to do it that way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我确认这会很慢,并且根据 IBM
cleartool find
示例。我会首先尝试查找所有
*.ch
文件版本,然后按分支对其进行排序以隔离最新版本。这样可能会更快。I confirm this will be slow, and that the
-branch '\!attype(dummyname)'
seems to be the only way to list all branches, according to IBMcleartool find
examples.I would try first to find all
*.ch
file versions, and sort that out per branches to isolates the latest. That might be quicker.