安装 Beyond Compare
安装 Command Line Tools
打开 Beyond Compare,菜单栏中点击安装命令行工具 Command Line Tools
设置svn
svn diff
- 创建 /usr/local/bin/bcdiff.sh 脚本
执行如下命令添加脚本执行权限
1chmod +x /usr/local/bin/bcdiff.sh在上述 bcdiff.sh 脚本中添加如下执行命令:
123/usr/local/bin/bcompare "$6" "$7" -title1="$3" -title2="$5" -readonlyexit 0打开并编辑 **$HOME/.subversion/config 配置文件,在 [Helpers] 部分添加如下命令行:
1diff-cmd = /usr/local/bin/bcdiff.sh
svn merge
- 创建 /usr/local/bin/bcmerge.sh 脚本
执行如下命令添加脚本执行权限
1chmod +x /usr/local/bin/bcmerge.sh在上述 bcmerge.sh 脚本中添加如下执行命令:
12/usr/local/bin/bcompare "$2" "$3" "$1" "$4"打开并编辑 $HOME/.subversion/config 配置文件,在 [Helpers] 部分添加如下命令行:
1merge-tool-cmd = /usr/local/bin/bcmerge.sh