如何将 Beyond Compare 与 ClearCase 集成?

发布于 2024-09-11 02:45:14 字数 105 浏览 5 评论 0 原文

我想将 Beyond Compare 与 ClearCase 集成,这样我就可以用它来比较和合并文件,而不是 ClearCase 提供的那些糟糕的工具。

有人有执行此集成的说明吗?

I would like to integrate Beyond Compare with ClearCase so that I can use it for diffing and merging files, instead of the awful tools provided by ClearCase.

Does anyone have instructions for performing this integration?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

节枝 2024-09-18 02:45:14

正如我的之前的回答中提到的,只需修改位于以下位置的地图文件

# up to ClearCase 7.0
c:\program files\rational\ClearCase\lib\mgrs

# ClearCase 7.1 and more
c:\program files\IBM\RationalSDLC\ClearCase\lib\mgrs

每条地图线都有 3 个部分:CC 文件类型、CC 操作和应用程序。

根据您的情况,在地图文件中查找 text_file_delta 文件类型的部分。
在那里,您将找到 CC 操作 comparexcomparemergexmerge 的行。

使用 BeyondCompare

text_file_delta xcompare C:\Progra~1\Beyond~1\bc2.exe  

Beyond Compare 3 支持所有 CC 操作:

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 

注意:对于Beyond Compare 2,此页面明确提到

要使用 Beyond Compare 2,只需更改映射文件的 xcompare 行。
不支持覆盖 comparemergexmerge
此处提供了一个改进 BC2 支持的帮助程序


请注意,前面的内容仅适用于 ClearCase,不适用于 CCRC(ClearCase 远程客户端)

本技术说明说明了如何更改 CCRC 的 XML 差异/合并工具(KDiff3,但您可以将其调整为 BeyondCompare):

将目录更改为CCRC安装位置>插件> com.ibm.rational.clearcase.compare_merge._,
其中 是所使用的操作系统位的名称, 是客户端上应用的 CCRC 更新的最新版本。

在 Windows 上

  • CCRC 7.1 默认值:C:\Program Files\IBM\IMShared\plugins
  • CCRC 7.0 默认值:C:\Program Files\IBM\Rational\ClearCase\CCRC\plugins\

示例:

com.ibm.rational.clearcase.compare_merge.win32x86_7.0.1.CU02
  • 将 KDiff3 可执行文件从其安装路径复制到 com.ibm.rational.clearcase.compare_merge._ 目录
  • ccrc_xmldiffmrg.exe 重命名为 ccrc_xmldiffmrg_orig.exe
  • KDiff3.exe 重命名为 ccrc_xmldiffmrg.exe
  • 关闭并重新打开 CCRC

CCRC 问题:

更新 CCRC 时,插件目录com.ibm.rational.clearcase.compare_merge._ 将会更改
需要在新的插件目录中再次运行上述步骤

注意:您可以通过阻止 CCRC 自动查找更新来控制更新发生的时间。
单击窗口>首选项>安装/更新>自动更新并禁用自动更新。

禁用 CCRC 自动更新

As mentioned in my previous answer, just modify the map file located in:

# up to ClearCase 7.0
c:\program files\rational\ClearCase\lib\mgrs

or

# ClearCase 7.1 and more
c:\program files\IBM\RationalSDLC\ClearCase\lib\mgrs

Each map line has 3 parts: the CC filetype, the CC action, and the application.

In your case, find the section in the map file for text_file_delta file types.
There you will find lines for CC actions compare, xcompare, merge, and xmerge.

Use BeyondCompare:

text_file_delta xcompare C:\Progra~1\Beyond~1\bc2.exe  

Beyond Compare 3 support all CC actions:

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 

Note: For Beyond Compare 2, this page clearly mentions

To use Beyond Compare 2, only change the xcompare line of the map file.
Overriding compare, merge, and xmerge is not supported.
A helper that improves BC2's support is available here.


Note that what precedes is for ClearCase only, not CCRC (ClearCase Remote Client)

This technote illustrates how to change the XML diff/Merge tool for CCRC (KDiff3 but you can adapt it to BeyondCompare):

Change directories to the CCRC installation location > plugins > com.ibm.rational.clearcase.compare_merge.<os>_<ccrc ver>,
Where <os> is the name of the operating system bits used and <ccrc ver> is the latest version of the CCRC update applied on the client.

On Windows

  • CCRC 7.1 Default: C:\Program Files\IBM\IMShared\plugins
  • CCRC 7.0 Default: C:\Program Files\IBM\Rational\ClearCase\CCRC\plugins\

Example:

com.ibm.rational.clearcase.compare_merge.win32x86_7.0.1.CU02
  • Copy the KDiff3 executable from its installation path to the com.ibm.rational.clearcase.compare_merge.<os>_<ccrc ver> directory
  • Rename the ccrc_xmldiffmrg.exe to ccrc_xmldiffmrg_orig.exe
  • Rename KDiff3.exe to ccrc_xmldiffmrg.exe
  • Close and reopen CCRC

CCRC Issue:

When updating CCRC, the plug-in directory com.ibm.rational.clearcase.compare_merge.<os>_<ccrc ver> will change.
The steps above will need to be run again in the new plug-in directory.

Note: You can control when the updates occur by preventing CCRC from looking for updates automatically.
Click Window > Preferences > Install/Update > Automatic Updates and disable automatic updates.

disable automatic updates on CCRC

毁我热情 2024-09-18 02:45:14

Beyond Compare 的替代方案是 KDiff3,它与 Clearcase 集成得非常好。安装时只需勾选 Clearcase 集成即可。

在此处输入图像描述

An alternative to Beyond Compare is KDiff3, which integrates very nicely with clearcase. Just tick off for clearcase integration when installing, and you're done.

enter image description here

感受沵的脚步 2024-09-18 02:45:14

如果你像我一样懒的话,只是为了利用冯的回答。

如果您可以使用正则表达式(如 notepad++)搜索和替换,则

Find What:((text_file_delta|_html|_xml|html2|xml2)[ \t]+(compare|xcompare|merge|xmerge)[ \t]+).* 

Replace with: \1C:\\Program Files\\Beyond Compare 3\\BCompare.exe 

VonC 提到的常规 Clearcase 的所有行都会执行。

(假设您在上述位置安装了 Beyond Compare,否则指向您的路径)。

我也发现它很有趣,我把“放在路径周围(由于空格)并且它不起作用,删除它们解决了这个问题。

Just to piggy back on Von's answer if you're lazy like me.

if you can search and replace with regex (like notepad++)

Find What:((text_file_delta|_html|_xml|html2|xml2)[ \t]+(compare|xcompare|merge|xmerge)[ \t]+).* 

Replace with: \1C:\\Program Files\\Beyond Compare 3\\BCompare.exe 

does all of the lines VonC mentioned for regular clearcase.

(assuming you have beyond compare installed at the above location, otherwise point to your path).

I also found it interesting, I put "'s around the path (due to the spaces) and it didn't work, removing them solved that problem.

BC 支持页面上还有“官方”方式:

Scooter 的官方提示

<前><代码>1。找到插件文件夹,其中将包含名为子文件夹的特定版本。示例:
C:\Program Files\IBM\Rational\ClearCase701\CCRC\plugins\com.ibm.rational.clearcase.compare_merge.win32.x86_7.0.1.D061004
C:\Program Files\IBM\IMShared\plugins\com.ibm.rational.clearcase.compare_merge.win32.x86_7.1.1.v201007070751
请注意,路径中的版本号可能会发生变化。
2. 将“C:\Program Files\Beyond Compare 3\bcomp.exe”复制到该文件夹​​中。
3. 将 ccrc_cleardiff.exe、ccrc_cleardiffmrg.exe、ccrc_worddiffmrg.exe 和 ccrc_xmldiffmrg.exe 移动到备份文件夹。
4. 制作 4 份 bcomp.exe 副本,并将其重命名为 ccrc_cleardiff.exe、ccrc_cleardiffmrg.exe、ccrc_worddiffmrg.exe 和 ccrc_xmldiffmrg.exe。
5. 在首选项 | 下将“CCRC Integrated (UTF-8)”更改为“ClearCaseExternal” CCRC |整合 |比较_合并。

但还有其他事情你应该做。
设置合并工具时,您应该覆盖与原始“CCRC Integrated”的比较,如下所示:

BC尚未处理清除案例目录比较。

There's also the 'official' way on the BC support page:

Ofiicial Tip by Scooter

1. Locate the plugins folder, which will contain a specific version named subfolder.  Examples:
    C:\Program Files\IBM\Rational\ClearCase701\CCRC\plugins\com.ibm.rational.clearcase.compare_merge.win32.x86_7.0.1.D061004
    C:\Program Files\IBM\IMShared\plugins\com.ibm.rational.clearcase.compare_merge.win32.x86_7.1.1.v201007070751
    Note that the version number in path is subject to change.
2. Copy "C:\Program Files\Beyond Compare 3\bcomp.exe" into the folder.
3. Move ccrc_cleardiff.exe, ccrc_cleardiffmrg.exe, ccrc_worddiffmrg.exe and ccrc_xmldiffmrg.exe to a backup folder.
4. Make 4 copies of bcomp.exe and rename them to ccrc_cleardiff.exe, ccrc_cleardiffmrg.exe, ccrc_worddiffmrg.exe and ccrc_xmldiffmrg.exe.
5. Change "CCRC Integrated (UTF-8)" to "ClearCase External" under Preferences | CCRC | Integration | Compare_Merge.

BUT there's something else you should do.
When setting the merge tool, you should override the comparison to the original 'CCRC Integrated', like so:

Override directory comparison

BC does not yet handle Clear Case Directory Comparison.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文