如何找到谁删除了clearCase Trigger?

时间:2014-07-07 16:04:14

标签: clearcase ibm-rational

在某些vobs ClearCase触发器被删除后,日志中也看不到任何内容。有没有办法找到谁这样做?

1 个答案:

答案 0 :(得分:1)

ClearCase events are recorded

开始
  

在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"."

使用this technote了解详情:

Windows示例:

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"."
相关问题