最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】把TortoiseSVN中默认的文件比较工具替换为Beyond Compare

SVN crifan 8612浏览 0评论

【背景】

默认用TortoiseSVN去比较的话:

右击svn的文件->TortoiseSVN->Diff with previous version

default tortoisesvn diff with previous version

会调用自带的比较工具去比较:

TortoiseDiff

Tortoisesvn default diff tool TortoiseDiff exe

效果是:

tortoisesvn default diff not very good

总体效果还可以了,但是还是没有专业的比较工具BeyondCompare效果好。

所以打算去把TortoiseSVN的默认比较工具,换成BeyondCompare。

【折腾过程】

1.打开TortoiseSVN的配置:

open tortoisesvn settings

然后去找到对应的设置比较工具的地方:

Settings->Diff Viewer

Tortoisesvn Settings Diff Viewer

把默认的 TortoiseMerge换成External,然后再设置为BeyondCompare。

2.关于参数如何设置,搜:

TortoiseSVN BeyondCompare

参考:

—设置TortoiseSVN使用beyond compare | …..我期待!!!

TortoiseSVN 配置 BeyondCompare_岩岩爸_新浪博客

Beyond Compare Technical Support


TortoiseSVN

Diff
  1. Select Settings from Explorer’s TortoiseSVN submenu.
  2. Switch to the Diff Viewer tab.
  3. Change the radio buttons from TortoiseMerge to External.
  4. In the path edits, enter:
    "C:\Program Files (x86)\Beyond Compare 4\BComp.exe" %base %mine /title1=%bname /title2=%yname /leftreadonly

To use Beyond Compare for image comparisons either replace the file C:\Program Files\TortoiseSVN\bin\TortoiseIDiff.exe with a copy of BComp.exe, or click the Advanced button on the Diff Viewer tab and add each image type’s extension with the same command line as above.

3.然后自己也看到对应的提示了:

diff viewer tip base mine file

参考别人,写成的:

"E:\dev_install\Beyond Compare 3\BCompare.exe" %base %mine /title1=%bname /title2=%yname /leftreadonly

但是用之前,想要搞清楚:

这些参数的含义

其他还有哪些参数

 

最终是:虽然自己基本能猜出来:

title1==左边的标题,%bname==base name=原先文件名

title2==右边的标题,%yname==新的文件名??

leftreadonly:左边的为只读->防止被修改->左边的是base,即原先的版本,旧版本的那个文件

但是好像官网也没有解释这些额外的参数的含义,所以算了,懒得继续研究了。

4.就去用上述配置吧:

set to above path and para for diff viewer

然后点击确定将即可。

然后再去试试效果:

again to diff with previous version

效果那是相当地好:

beyond compare diff effect quite good

这样就方便看出不同版本之间差异,方便继续研究问题了。

 

【总结】

把TortoiseSVN中默认比较工具换成Beyond Compare的办法:

右击svn文件->Settings->Diff Viewer->选中External->设置值为

"E:\dev_install\Beyond Compare 3\BCompare.exe" %base %mine /title1=%bname /title2=%yname /leftreadonly

其中的含义是:

  • "E:\dev_install\Beyond Compare 3\BCompare.exe" 表示你的Beyond Compare的安装路径
  • %base 表示你的左边的要比较的文件->要比较的基础base的文件
  • %mine 表示要比较的右边的文件->mine,我的,我的新修改的文件
  • /title1=%bname 左边的标题,标题1是base file的name
  • /title2=%yname 右边的标题,标题2是新文件?的名字
  • /leftreadonly  左边是只读->不允许修改->想要运行修改左边文件,则应该是不要加上此参数

即可。

转载请注明:在路上 » 【记录】把TortoiseSVN中默认的文件比较工具替换为Beyond Compare

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.184 seconds, using 22.19MB memory