如何查找clearcase分支下修改的文件
我修改并签入了我的分支下的一堆文件。现在我需要获取我修改的文件列表。有没有脚本可以做到这一点?
I modified and checked-in a bunch of files under my branch. Now I need to get the list of files I modified. Is there any scripts to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
尝试这个命令
try this command
使用以下脚本
将其保存在名为 ctlsbr 的文件中,并从您想要查找已修改文件列表的 vob 中使用它。
谢谢,
阿米特
Use the following script
Save this in a file named ctlsbr and use this from the vob you want to find out the list of modified files.
Thanks,
Amit
cleartool 命令
find
应该可以帮助您查找给定分支上至少具有一个版本的任何元素(文件)。请参阅查找示例或“<一个href="https://www-304.ibm.com/support/docview.wss?uid=swg21124425" rel="noreferrer">cleartool find 命令的其他示例”了解更多示例。
OP sarath 添加:
确实,这样的命令会给你类似的东西(作为示例):
要仅获取路径,你有两种解决方案:
1/查找具有正确分支的元素(而不是版本):(
注意
-ele
替换-branch
)这会给出:
但你仍然有“丑陋的”'
@@
'。2/ 将 find 与 exec 指令结合起来,该指令描述通过
fmt_ccase
格式:多行形式以提高可读性:
请注意,所有“内部”双引号需要转义。
%En
将为您提供找到的元素的名称。The cleartool command
find
should help you find any element (file) with at least one version on a given branch.See find examples or "Additional examples of the cleartool find command" for more examples.
The OP sarath adds:
True, such a command would give you something like (as an example):
To get only the path, you have two solutions:
1/ look for elements (and not versions) with the right branch:
(note the
-ele
replacing the-branch
)That would give:
But you still have the "ugly" '
@@
'.2/ combine the find with an exec directive which describe the element found with
fmt_ccase
format:Multi-line form for readability:
Please note that all "inner" double quotes need to be escaped.
The
%En
will give you the name of the element found.find 命令是最好的来源。为了解决 OP 担心用 @@ 取回“残缺”名称以及之后的所有分支和版本信息,可以添加“-nxn”选项以不提供此信息。这比结合 exec 指令进行元素搜索来格式化输出要容易得多。
The find command is the best source. To address the OPs concerns about getting back a "crippled" name with @@ and all of the branch and version information afterwards, the "-nxn" option can be added to not provide this info. This is much easier that doing the element search combined with exec directive to format the output.
上述命令将给出特定
branch(myBranch)
中修改的所有文件。但是,如果您想查找特定用户在特定日期修改的文件,您将需要以下命令:(
在一大行中用于复制/粘贴目的:)
The above command will give all the files modified in particular
branch(myBranch)
.But if you want to find the files modified by particular user in particular date, you would need the following command:
(in one giant line for copy/paste purpose:)