![](/img/trans.png)
[英]ClearTeam Explorer - CCRC - integrate with Beyond Compare
[英]How do I integrate Beyond Compare with ClearCase?
我想将Beyond Compare与ClearCase集成,以便我可以使用它来进行差异和合并文件,而不是使用ClearCase提供的糟糕工具。
有没有人有执行此集成的说明?
正如我之前的回答中所提到的,只需修改位于以下位置的地图文件 :
# 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操作和应用程序。
在您的情况下,在map文件中找到
text_file_delta
文件类型的部分。
在那里你会找到CC动作compare
,xcompare
,merge
和xmerge
。
text_file_delta xcompare C:\Progra~1\Beyond~1\bc2.exe
超越比较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
行。
不支持覆盖compare
,merge
和xmerge
。
这里提供了一个帮助改善BC2支持的帮手。
请注意,前面的内容仅适用于ClearCase,而不适用于CCRC(ClearCase Remote Client)
此技术说明如何更改CCRC的XML diff / Merge工具( KDiff3,但您可以将其调整为BeyondCompare ):
将目录更改为
CCRC installation location > plugins > com.ibm.rational.clearcase.compare_merge.<os>_<ccrc ver>
,
其中<os>
是使用的操作系统位的名称,<ccrc ver>
是客户端上应用的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.<os>_<ccrc ver>
目录- 将
ccrc_xmldiffmrg.exe
重命名为ccrc_xmldiffmrg_orig.exe
- 将
KDiff3.exe
重命名为ccrc_xmldiffmrg.exe
- 关闭并重新开启CCRC
更新CCRC时,插件目录
com.ibm.rational.clearcase.compare_merge.<os>_<ccrc ver>
将更改 。
需要在新的插件目录中再次运行上述步骤 。注意:您可以通过阻止CCRC自动查找更新来控制更新的发生时间。
单击Window > Preferences > Install/Update > Automatic Updates
并禁用自动更新。
Beyond Compare的另一种选择是KDiff3 ,它与clearcase完美结合。 只需在安装时勾选clearcase集成,即可完成。
如果你像我一样懒,那就回到Von的回答。
如果你可以搜索和替换正则表达式(如记事本++)
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提到的所有行都是常规清晰的。
(假设您在上述位置安装了超出比较,否则指向您的路径)。
我也发现它很有趣,我把它放在路径周围(由于空间)并且它不起作用,移除它们解决了这个问题。
BC支持页面上还有“官方”方式:
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.
但是你还应该做些什么。 设置合并工具时,您应该覆盖与原始“CCRC Integrated”的比较,如下所示:
BC尚未处理明确案例目录比较。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.