MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
Release status: unmaintained
Implementation Tag
Description Adds some custom tags which allow an integration of files from Subversion repositories into the wiki.
Author(s) StefanMacke~mediawikiwikitalk
Latest version 1.1.3 (2009-02-17)
MediaWiki 1.11
License GPL
Download http://f.macke.it/MediaWikiSVNIntegration

What can this extension do?Edit

This extension adds the following custom tags which allow an integration of files from Subversion repositories into the wiki:

Prints the contents of the given file using GeSHi for syntax highlighting if existent.
Prints some information about the given file (e.g. name, path, last author, last revision message etc.).
Prints the revision history for the given file.
Prints a list of TODO/FIXME/XXX comment tags found in the given file.


Some examples:

<svnFileInfo username="user" password="pass">http://svn.example.com/File.php</svnFileInfo>
<svnPrintFile revision="1" filetype="ini">http://svn.example.com/File.txt</svnPrintFile>
<svnFileHistory r="103:HEAD">http://svn.example.com/File.php</svnFileHistory>


Download instructionsEdit

Until further notice you can download the extension here: http://f.macke.it/MediaWikiSVNIntegration


  • MediaWiki >= 1.11 due to use of function "wfLoadExtensionMessages".
  • VersionControl_SVN PEAR package must be installed to be able to use this extension.
    • You need to apply the patch from Info.php.patch to VersionControl/SVN/Info.php to get this extension to work.
  • If you would like to get the file output syntax highlighted you also need the GeSHiHighlight extension for MediaWiki.


  1. Extract the files from the archive to "extensions/SVNIntegration"
  2. Configure some needed values in "SVNIntegration.setup.php"
  3. Insert the following line into your "LocalSettings.php" (behind GeSHi inclusion if existent)
  1. (optional) Insert the following line into your "main.css"
@import "/extensions/SVNIntegration/SVNIntegration.css";

See alsoEdit


Version 1.1.3Edit

  • it is now possible to use SVN+SSH for connecting to your repository

Version 1.1.2Edit

  • svnPrintFile now accepts parameters startLine and endLine to print only parts of files.

Version 1.1.1Edit

  • Fixed problem with editing sections when database contains searchable text from SVN.

Version 1.1.0Edit

  • Fixed problem with configuration of SVN path in VersionControl: now you need to configure the path to the svn binary only in the extension's setup.
  • Added SVNTodo functionality.
  • The SVN output can now optionally be appended to the article's text in the database so that it becomes searchable.
  • An empty username and/or password is now supported.

Version 1.0.2Edit

  • Added patch for VersionControl_SVN_Info (fixes disability to get file information from SVN)

Version 1.0.1Edit

  • Fixed invalid switches "username" and "password" for VersionControl_SVN_Info
  • Fixed invalid parameter "filetype" for VersionControl_SVN

Version 1.0Edit

  • Initial release