【问题标题】:Beyond compare integration with Clearcase failed超越与 Clearcase 的比较集成失败
【发布时间】:2011-06-16 14:46:56
【问题描述】:

我尝试将 Beyond Compare 3 与 clearcase 集成。但它失败了,只是打开了 clearcase 附带的默认比较应用程序。

这是我提供的以下数据 C:\Program Files\IBM\RationalSDLC\ClearCase\lib\mgrs\map 文件。 (我正在使用 clearcase SDLC)。
我也尝试过使用 WinMerge,但它也失败了。可能是什么原因?

text_file_delta     compare             C:\Program Files\Beyond Compare 3\BComp.exe
text_file_delta     xcompare            C:\Program Files\Beyond Compare 3\BComp.exe
text_file_delta     merge               C:\Program Files\Beyond Compare 3\BComp.exe
text_file_delta     xmerge              C:\Program Files\Beyond Compare 3\BComp.exe

【问题讨论】:

    标签: version-control clearcase beyondcompare


    【解决方案1】:

    我也是,修改地图文件没有任何区别。

    但是,我使用 Rational ClearCase Explorer 7.0 for Rhapsody 并且 DiffMerge 知道如何处理 Rhapsody 文件。

    如果是这种情况,默认情况下,用于文本文件的 diff 工具是 tkdiff,但您可以在 DiffMerge 中修改首选项(位于 View 菜单下)以使用 BC。

    在 CC 资源管理器中执行“查找检查”并将文件(通常是 .cls 文件)与其先前版本进行比较。 DiffMerge 打开。进入 View -> Preferences -> TextDiffMerge 并修改这些行:

    BaseAwareDiffInvocation: "C:\Program Files\Beyond Compare 3\BComp.exe" $source1 $source2 $sourceBase
    BaseAwareDiffMergeInvocation: $BaseAwareDiffInvocation $output
    DiffInvocation: "C:\Program Files\Beyond Compare 3\BComp.exe" /readonly $source1 $source2
    DiffMergeInvocation: "C:\Program Files\Beyond Compare 3\BComp.exe" $source1 $source2 /mergeoutput=$output
    

    单击确定。然后在类中查找修改过的方法,并在 ItsBody 行上启动“Diff Text”。你应该做生意!

    【讨论】:

      【解决方案2】:

      这看起来不错,详见“How do I integrate Beyond Compare with ClearCase?”。

      所以它仍然可能失败的一个原因是您尝试比较的文件的类型管理器不是“text_file_delta”。
      您可以通过在 ClearCase 资源管理器的文件上下文菜单中选择“元素属性”来检查。

      【讨论】:

      • 我检查了一些文件,它在元素属性中显示类型为“text_file”。
      • @sarat:如果“失败”会在显示默认 xdiff GUI 之前打开某种错误消息吗?
      猜你喜欢
      • 2017-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多