I used the wiki in a project hosted at Google Code. With this wiki all the changes you make with the web interface are committed in the subversion repository of the project.
ikiwiki is a wiki compiler and cgi script that can integrate various VCS (svn and git at least) as storage backends.