在一些 vobs ClearCase 触发器被删除,在日志中也看不到任何内容。有没有办法找到这是谁做的?
问问题
134 次
1 回答
1
在 VOB 对象上运行
lshistory
将显示删除事件。
这至少提供了关于谁删除了一个类型、何时删除的历史记录,以及删除时输入的任何评论。
如果不将这些事件存储在 VOB 对象中,将不会记录对象被删除的人员和时间。
例子:
The creation event is visible in the history.
% cleartool lshistory -long brtype:NEWBR
15-Oct-03.16:32:41 John Doe (jdoe.clearuser@host1)
create branch type "NEWBR"
Once removed, the type object's removal event is only visible in the history.
% cleartool rmtype -rmall brtype:NEWBR
Removed branch type "NEWBR".
% cleartool lshistory -long vob:<tag>
15-Oct-03.16:32:41 John Doe (jdoe.clearuser@host1)
destroy type in versioned object base "<tag>"
"Destroyed branch type "NEWBR"."
在您的情况下,查找类似于以下内容的删除消息:
"Destroyed trigger type "XXX"."
通过此技术说明查看更多信息:
窗口示例:
M:\dynamic_view\test_vob>cleartool lshistory -all | findstr /C:"Destroyed trigger type"
"Destroyed trigger type "VERSION"."
注意:该findstr
命令与/C
本示例中的选项一起使用。
前面没有空格的冒号/C
表示引号中的所有内容都应作为单个项目进行搜索。
UNIX/Linux 示例:
%>cleartool lshistory -all | grep 'Destroyed trigger type'
"Destroyed trigger type "VERSION"."
于 2014-07-20T07:17:16.717 回答