Cleartool-查找已卸载/已删除的文件 [英] Cleartool - find unloaded/removed files

查看:58
本文介绍了Cleartool-查找已卸载/已删除的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cleartool中是否有一个命令,我可以用来列出从分支中删除的所有文件?

Is there a command in Cleartool which i can use to list all files which have been removed from a branch?

谢谢

推荐答案

在ClearCase中查找任何内容的基本命令是... cleartool find ,也显示在 > ClearCase UCM:需要查看内容删除的文件

The basic command to find anything in ClearCase is... cleartool find, also illustrated in "ClearCase UCM: Need to See Content of Deleted File".

在您的情况下,您将搜索不在分支的最新位置的文件版本:

In your case, you would search for versions of files which aren't at the LATEST of a branch:

cleartool find . -type f -version "! version(.../BRANCH/LATEST)" -print

(参见版本选择器,以获取有关此' ... / '表示法的更多信息)

(see version selector for more on this '.../' notation)

仅显示文件(而不显示所有版本):

To display only the file (and not all the versions):

cleartool find . -type f -element "! version(.../BRANCH/LATEST)" -print






OP linuxlewis 在评论中提到:


这将显示同级分支之间存在的所有差异。我只是希望能够从当前分支中看到文件名(如果已删除)

this will show all differences which exist between sibling branches. I just want to be able see the file names,if any were removed,from the current branch

我提到了 grep 用于分支,以检测具有 BRANCH 版本的文件但不是 LATEST

I mention the possibility of a grep for BRANCH, to detect files which have versions in BRANCH but not LATEST)

但是,更干净的解决方案是在搜索中添加另一个过滤器:&&版本(... /分支)

However, a cleaner solution is to add another filter to the search: && version(.../BRANCH)

cleartool find . -type f -element "! version(.../BRANCH/LATEST) && version(.../BRANCH)" -print

这将搜索所有在分支 BRANCH 中具有版本的元素(ClearCase中的文件或目录),但不会搜索分支/最新

That will search all "elements" (files or directories in ClearCase) which have versions in branch BRANCH, but not one in BRANCH/LATEST.

这篇关于Cleartool-查找已卸载/已删除的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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