简体   繁体   English

使用Mercurial时,除了比较Eclipse中的默认diff工具?

[英]Beyond Compare as default diff tool in Eclipse when using Mercurial?

Is there any way to make Beyond Compare 3 the default diff tool in Eclipse? 有没有办法让Beyond Compare 3成为Eclipse中的默认diff工具? I'm using the Mercurial plugin and would like to use BC3 for diffing files and handling merge conflicts. 我正在使用Mercurial插件,并希望使用BC3来区分文件和处理合并冲突。 I'm only able to find solutions when it comes to CVS or SVN when searching this site. 在搜索本网站时,我只能找到CVS或SVN的解决方案。

See the following query for discussion on external diff tool for Mercurial Eclipse. 有关Mercurial Eclipse的外部差异工具的讨论,请参阅以下查询。

It suggests that standard approach for setting up external diff tool should suffice. 它表明,设置外部差异工具的标准方法应该足够了。 So setting up ".hgrc" should work. 所以设置“.hgrc”应该有效。

Since this is no different from any other setup, you can test it by using hg commands in shell. 由于这与任何其他设置没有区别,您可以在shell中使用hg命令对其进行测试。 See if that throws any errors and then check out with eclipse. 看看是否会抛出任何错误,然后使用eclipse进行检查。

The setting for external merge tool is available in the plugin settings. 插件设置中提供了外部合并工具的设置。

[edit: with hgrc] [编辑:与hgrc]

This will work when you use command line. 当您使用命令行时,这将起作用。

The following " ExtdiffExtension " extension should help. 以下“ ExtdiffExtension ”扩展应该有所帮助。

The extdiff Mercurial extension allows you to use external programs to compare revisions, or revision with working dir. extdiff Mercurial扩展允许您使用外部程序来比较修订或修改与工作目录。 The external diff programs are called with a configurable set of options and two non-option arguments: paths to directories containing snapshots of files to compare. 使用可配置的选项集和两个非选项参数调用外部diff程序:指向包含要比较的文件的快照的目录的路径。

You need to install Beyond Compare Eclipse Plugin (Beyond CVS) which would provide this functionality. 您需要安装提供此功能的Beyond Compare Eclipse插件(Beyond CVS)。

Cheers!!! 干杯!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM