使用 Mercurial 时,除了 Compare 作为 Eclipse 中的默认差异工具之外?
有没有办法让 Beyond Compare 3 成为 Eclipse 中默认的 diff 工具? 我正在使用 Mercurial 插件,并希望使用 BC3 来比较文件和处理合并冲突。 在搜索此站点时,我只能找到涉及 CVS 或 SVN 的解决方案。
Is there any way to make Beyond Compare 3 the default diff tool in Eclipse?
I'm using the Mercurial plugin and would like to use BC3 for diffing files and handling merge conflicts.
I'm only able to find solutions when it comes to CVS or SVN when searching this site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有关 Mercurial Eclipse 的外部 diff 工具的讨论,请参阅以下查询。
它表明设置外部差异工具的标准方法应该足够了。所以设置“.hgrc”应该可以。
由于这与任何其他设置没有什么不同,因此您可以在 shell 中使用 hg 命令来测试它。看看是否会引发任何错误,然后用 eclipse 进行检查。
外部合并工具的设置可在插件设置中找到。
[编辑:使用 hgrc]
这将在您使用命令行时起作用。
extdiff Mercurial 扩展允许您使用外部程序来比较修订版或修订版与工作目录。使用一组可配置的选项和两个非选项参数调用外部 diff 程序:包含要比较的文件快照的目录的路径。
See the following query for discussion on external diff tool for Mercurial Eclipse.
It suggests that standard approach for setting up external diff tool should suffice. So setting up ".hgrc" should work.
Since this is no different from any other setup, you can test it by using hg commands in shell. See if that throws any errors and then check out with eclipse.
The setting for external merge tool is available in the plugin settings.
[edit: with hgrc]
This will work when you use command line.
The extdiff Mercurial extension allows you to use external programs to compare revisions, or revision with working dir. 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.
您需要安装 Beyond Compare Eclipse 插件(Beyond CVS)来提供此功能。
干杯!!!
You need to install Beyond Compare Eclipse Plugin (Beyond CVS) which would provide this functionality.
Cheers!!!