Extension:SVNIntegration

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
SVNIntegration
Release status: stable
Implementation Tag
Description Adds some custom tags which allow an integration of files from Subversion repositories into the wiki.
Author(s) StefanMacketalk
Latest version 1.1.3 (2009-02-17)
MediaWiki 1.11
License GPL
Download http://f.macke.it/MediaWikiSVNIntegration
Translate the SVNIntegration extension if it is available at translatewiki.net
Check usage and version matrix.

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:

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

Usage[edit]

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>http://svn.example.com/File.php</svnFileHistory>
<svnFileHistory r="103:HEAD">http://svn.example.com/File.php</svnFileHistory>

Screenshots[edit]

Download instructions[edit]

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

Prerequisites[edit]

  • 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.

Installation[edit]

  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)
include("extensions/SVNIntegration/SVNIntegration.setup.php");
  1. (optional) Insert the following line into your "main.css"
@import "/extensions/SVNIntegration/SVNIntegration.css";


See also[edit]


Changelog[edit]

Version 1.1.3[edit]

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

Version 1.1.2[edit]

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

Version 1.1.1[edit]

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

Version 1.1.0[edit]

  • 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.2[edit]

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

Version 1.0.1[edit]

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

Version 1.0[edit]

  • Initial release