I want to configure SVN command line client SlikSVN with Beyond Compare 3 as external diff and merge tool. How to do this?
Asked
Active
Viewed 1,800 times
1 Answers
1
Add
Beyond Compare 3folder to WindowsPATH. If you don't know how check this answer - just replacePythonpath withBeyond Compare 3path.In
Beyond Compare 3folder createbcomp-diff.batfile:@ECHO OFF SET DIFF="bcomp.exe" SET LEFT=%6 SET RIGHT=%7 %DIFF% %LEFT% %RIGHT%In
Beyond Compare 3folder createbcomp-merge.batfile:@ECHO OFF SET DIFF3=BComp.exe SET BASE=%1 SET THEIRS=%2 SET MINE=%3 SET MERGED=%4 REM left MINE REM center BASE REM right THEIRS %DIFF3% %MINE% %THEIRS% %BASE% %MERGED%Now we need to edit
SlikSVNconfig file. On Windows 7 it is located in%USERPROFILE%\AppData\Roaming\Subversion(source). Just paste this into Windows Explorer address bar and editconfigfile.In
[helpers]section ofconfigfile add/modify as below:diff-cmd = bcomp-diff.bat merge-tool-cmd = bcomp-merge.batRestart
cmd.exeso thatPATHwindows variable will be reloaded.You're done! Try
svn diffinside your repository and it should runBeyond Compare 3.
I've made a gist with above batch files.
Batch files are based on this website.
Community
- 1
- 1
Jan Święcki
- 1,611
- 2
- 16
- 28