Subversion plugin cheat sheet
This document is a work in progress, I will try to cover here the most FAQ for the Subversion plugin as it's a very important part of CodeLite for any developer who uses svn in his daily work.
Appearance of the Subversion view:
![]() |
Installation
In order to work with the Subversion plugin, you will need to install the svn command line tool for your OS.
It is recommended to use svn client 1.6.X and up, since some of the switches used by codelite were introduced in version 1.6 (although older versions will work as well).
- Windows - download the latest binary from here: http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100
- Linux:
- Ubuntu:
sudo apt-get install subversion - Fedora:
yum install subversion
- Ubuntu:
- MacOSX - it should be installed by default or with the XCode installation (I am not sure which)
Integrating build number
The latest Subversion plugin offers a simple but very useful option to add a preprocessor definition into your compilation line which will contain the current revision number as a string.
To enable the build integration, open the svn settings dialog and select the 'Integration' tab and enable that page:
![]() |
Integrating an external diff viewer
To integrate an external diff viewer, open the Subversion settings dialog (either from subversion toolbar, or from the Plugins > Subversion2 > Subversion Options menu) and select 'External Diff' tab.
Check the 'Use external diff viewer' checkbox, and select your tool of choice.
WinMerge
One of the most popular tools around (under Windows at least) is the open source tool WinMerge. Follow thses steps to intergrate WinMerge with codelite's subversion plugin:
- Create a small batch script named "winmergesvn.bat" with the following content and save it on your disk
start "WinMerge" /B /WAIT "C:\Program Files\WinMerge\WinMergeU.exe" /e /ub /dl %3 /dr %5 %6 %7
- Next, open the subversion plugin settings dialog and select this batch script to become your diff tool
Thats it.
Araxis Merge
Another great tool (my favorite), however it is not a free tool, but very powerfull.
To make Araxis your default diff viewer:
- Open the subversion settings dialog and select executable named 'AraxisSVNDiff.exe' as your diff tool
Kdiff3
Same as Araxis:
- Open the subversion settings dialog and set kdiff3 as your diff tool



