Extension:SVNIntegration
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() 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:
- 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.
UsageEdit
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>
ScreenshotsEdit
- See the svnFileInfo tag in action: http://f.macke.it/SVNIntegrationExample1
- See the svnTodo tag in action: http://f.macke.it/SVNIntegrationExample2
Download instructionsEdit
Until further notice you can download the extension here: http://f.macke.it/MediaWikiSVNIntegration
PrerequisitesEdit
- 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.
- You need to apply the patch from
- If you would like to get the file output syntax highlighted you also need the GeSHiHighlight extension for MediaWiki.
InstallationEdit
- Extract the files from the archive to "extensions/SVNIntegration"
- Configure some needed values in "SVNIntegration.setup.php"
- Insert the following line into your "LocalSettings.php" (behind GeSHi inclusion if existent)
include("extensions/SVNIntegration/SVNIntegration.setup.php");
- (optional) Insert the following line into your "main.css"
@import "/extensions/SVNIntegration/SVNIntegration.css";
See alsoEdit
- VersionControl_SVN PEAR package
- SyntaxHighlight
ChangelogEdit
Version 1.1.3Edit
- it is now possible to use
SVN+SSH
for connecting to your repository
Version 1.1.2Edit
svnPrintFile
now accepts parametersstartLine
andendLine
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