Since Delphi XE, Delphi has SVN support integrated into file history display. SVN revisions are displayed in addition to local backups, all properly sorted by date. Very nice.
Mercurial and Git support wasn’t added into the default distribution, but there’s a newer version of VersionInsight plugin with fully functioning support for those, written by Delphi developers. Meet RAD Studio Version Insight Plus.
To use this you need to compile it. It’s simple, but mind these fine points:
- There are several branches in the repo, you need the
/plusone. Not the trunk.
- Delphi less than XE will not compile those, no simple solution.
- You need to compile five packages:
svnide(already grouped into DelphiSVN) +
- Delphi already includes pre-compiled
svnide. You need to remove those from "Component> Install packages" list. (And restart)
- The ones from SVN are marked ver_150, and the ones with Delphi ver_170, but the ones from SVN are newer (I think).
- When compiling the packages, Delphi might try to trip you up and use existing packages it cached somewhere instead of the sources right in front of it.
To be on a safe side, do
dir c:\svn*.bpl /s,
dir c:\svn*.dcp /s,
dir c:\svn*.dcu /s, and remove everything related to VersionInsight plus. (Some matches are going to be in the cached Delphi install distributions, these are fine).
\releaseare known to silently cause problems such as
svnui.bplcomplaining that TSvnBlameOptions is not defined even though it’s defined right there in
Otherwise packages compile just fine, have no dependencies and produce almost no warnings.
After compiling the packages, install the last three (
gitide). Restart the Delphi.
The SVN support will start working straight away (it should have been working before too). For Git and Mercurial you need to go to Tools> Options> Version Control, and set paths to
hg.exe executables in the respective sections.