检测“邪恶双胞胎”的简单方法是什么?在Rational ClearCase中? [英] What's the easiet way to detect "evil twins" in Rational ClearCase?

查看:76
本文介绍了检测“邪恶双胞胎”的简单方法是什么?在Rational ClearCase中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ClearCase 7.1

I'm using ClearCase 7.1

我怀疑我们有一些邪恶的双胞胎。我正在寻找通过扫描VOB或其他任何方式找出它们的最有效方法。有没有适用的脚本?

I suspect we have some evil twins. I'm looking for the most efficient way to find them out by scanning the VOB or any other ways. Is there any script that applies it?

对于下一个即将来临的邪恶双胞胎,我们将使用阻止它的触发器。

For the next coming evil twins we'll use a trigger that prevents it.

谢谢

推荐答案

除非您从ClearCase 8.0中受益于集成的邪恶双胞胎检测,否则唯一方法仍然是 cleartool find 命令:

Unless you benefit from the integrated evil twin detection from ClearCase 8.0, the only way remains cleartool find command:

请参见 关于Evil Twins,请定位部分以供示例:

您从两个视图运行以下命令并比较输出(oid和pname),可以验证文件级别上是否存在邪恶的双胞胎情况:

you run the following command from two views and compare the output (oid and pname), you can verify whether there is an evil twin situation on a file level:


Windows语法示例:

Windows syntax example:



cleartool find . -type f -exec "cleartool describe -fmt \"%On, %n\n\" \"%CLEARCASE_PN%@@\""




Unix语法示例:

Unix syntax example:



cleartool find . -type f -exec 'cleartool describe -fmt "%On, %En\\n" $CLEARCASE_PN@@'

这篇关于检测“邪恶双胞胎”的简单方法是什么?在Rational ClearCase中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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