本文介绍了如何使用p4merge作为Mercurial的合并/ diff工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道如何设置以使用作为OS X 10.5上的合并/差异工具?
Does anyone know how to setup Mercurial to use p4merge as the merge/diff tool on OS X 10.5?
推荐答案
将它放入您的〜/ .hgrc
(或者, c> Mercurial.ini 在Windows上):
Place this into your ~/.hgrc
(or, optionally, your Mercurial.ini
on Windows):
[merge-tools]
p4.priority = 100
p4.premerge = True # change this to False if you're don't trust hg's internal merge
p4.executable = /Applications/p4merge.app/Contents/MacOS/p4merge
p4.gui = True
p4.args = $base $local $other $output
需要Mercurial 1.0或更高版本。显然,您需要更新该可执行文件的路径以反映您安装p4merge的位置。
Requires Mercurial 1.0 or newer. Clearly you'll need to update the path to that executable to reflect where you'd got p4merge installed.
这篇关于如何使用p4merge作为Mercurial的合并/ diff工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!