Extension:SubversionChanges
From MediaWiki.org
|
SubversionChanges Release status: stable |
|
|---|---|
| Implementation | Tag |
| Description | Adds a parser function to output Subversion changes. |
| Author(s) | Stéphane GALLAND (sgalland-arakhneTalk) |
| Last version | 1.2 |
| License | GPL |
| Download | http://www.arakhne.org/mediawiki/SubversionChanges/ |
|
Check usage (experimental) |
|
Contents |
[edit] Description
SubversionChanges is an extension of Mediawiki to extract a change log from a Subversion server and format it.
Example: http://www.janus-project.org/index.php/ChangeLog:DailyBuild
[edit] Installation
- Download SubversionChanges,
- Unpack the archive in your Mediawiki directory
- add require_once('extensions/SubversionChanges/SubversionChanges.php'); in your LocalSettings.php.
[edit] Configuration
SubversionChanges extension uses several global variables which may be set in LocalSetting.php:
$wgSvnRepoPath- Defines the paths to the SVN repositories. It is an associative array of
(project_id => repository_url)
- Defines the paths to the SVN repositories. It is an associative array of
$wgSvnRepoAuth- Defines the authentification informations to the SVN repositories. It is an associative array of
(project_id => "login password")
- Defines the authentification informations to the SVN repositories. It is an associative array of
$wgSvnRepoJiraProjectIds- Defines the identifiers for the projects on JIRA. These identifiers will be automatically detected and enclosed by
<jira />HTML tag. By default, the project id passed to the parser function is recognized.
- Defines the identifiers for the projects on JIRA. These identifiers will be automatically detected and enclosed by
[edit] Usage
SubversionChanges provides the parser function {{#svnchanges}}. This function is expanded to a change log extracted from a Subversion server.
{{#svnchanges:projectName:branch}}:
projectName: is the identifier of the project, see configuration.branch: is the branch identifier of the project (by default:trunk).- If branch is a version number, the directory
/tags/projectName-branchon the Subversion server is used. - If branch is empty or equal to
"trunk"the directory/trunkon the Subversion server is used. - In the other cases, the directory
/branches/branchon the Subversion server is used.
- If branch is a version number, the directory
[edit] Changes
- 1.2: Call the parser recursively on the elements to allow expansion of wikitext.
- 1.1: In version 1.0, {{#svnchanges}} does not take into account the branchName parameter. It is fixed in version 1.1.
- 1.0: First Public Release on Mediawiki website.