wiki:TracSvnPoliciesPlugin

Version 9 (modified by doki_pen, 5 years ago) (diff)

--

Svn Policy Plugin

Description

This plugin tries to offer a visual interface for adding svn hooks to the projects managed through trac. The plugin is scalable for installations with multiple trac environments.

The plugin implements the most used features now in production servers and other features nice to have. From this plugin the administrator of the project can:

  • add the email addresses to which the svn commit mails to be sent;
  • enforce a svn log message format;
  • enable the control of tickets from the svn commit messages;
  • control the svn properties set for revisions;
  • set the svn repository as readonly;
  • write custom scripts to run at post-commit and pre-commit.

The plugin has a settings file svnpolicy.conf that must be configured before deployment.

Bugs/Feature Requests

Existing bugs and feature requests for TracSvnPoliciesPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out TracSvnPoliciesPlugin from here using Subversion, or browse the source with Trac.

Install

  • get a archive with the plugin on your computer from here
  • edit the svnpolicy.conf configuration file - below are explained all the configurations
  • install the plugin with easy_install
  • add in the ini file under the components section
    svnpolicies.* = enabled
    
  • add PROJECT_ADMIN permission to the user that you want to see this admin panel
    trac-admin /var/trac/svnpolicyexample/ permission add andrei PROJECT_ADMIN
    

Configurations

The configuration file has the following settings:

  • TRAC_CODE_PATH - the path to the directory in which the trac code is stored. This setting is used to find on the file system the trac-post-commit-hook file, from the contrib directory.
  • AUTHOR_URL_TEMPLATE - this string is used to create the URL at which the author of the commit has it's profile.
  • CHANGESET_URL - this string is used to create the URL at which the chageset with the commit can be found.
  • SVNNOTIFY - path on the file system where the svnnotify script can be found.
  • SVNLOOK - - path on the file system where the svnlook script can be found.
  • SMTP_HOST - the server that sends emails for trac.
  • SMTP_USER - the user with whom the trac authenticates to the mail server.
  • SMTP_PASSWORD - the password with whom the trac authenticates to the mail server.

Screenshots

screenshoot of the plugin with the svn commit log message set

screenshoot of the plugin with the email notifications set at post-commit

screenshoot of the plugin with the a advanced script set to run at pre-commit

screenshoot of the plugin with the readonly switch enabled

Recent Changes

[3153] by andrei2102 on 2008-01-28 13:02:43
  • add the PROJECT_ADMIN permission
[3136] by andrei2102 on 2008-01-23 16:56:14
  • changed the settings
[3135] by andrei2102 on 2008-01-23 16:53:42
  • the svn hooks now work even if the installation has multiple site-packages directories the site-path of the egg is written in a file in the tmp directory

Author/Contributors

Author: andrei2102
Maintainer: doki_pen
Contributors:

Attachments (4)

  • readonly.jpg (125.5 KB) - added by andrei2102 7 years ago. screenshoot of the plugin with the readonly switch enabled
  • advanced.jpg (136.5 KB) - added by andrei2102 7 years ago. screenshoot of the plugin with the a advanced script set to run at pre-commit
  • notifications.jpg (165.5 KB) - added by andrei2102 7 years ago. screenshoot of the plugin with the email notifications set at post-commit
  • log.jpg (141.0 KB) - added by andrei2102 7 years ago. screenshoot of the plugin with the svn commit log message set

Download all attachments as: .zip