wiki:TracSvnPoliciesPlugin

Svn policy interface

Description

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

Key features:

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

Administration panel for the svn policies:

screenshoot of the plugin with the svn commit log message set

Settings for email notifications:

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

Advanced settings for log messages during a commit:

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

Disallow commits, ie make the svn repository read-only:

screenshoot of the plugin with the readonly switch enabled

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.

defect

4 / 5

enhancement

1 / 3

task

1 / 1

Download

Download the zipped source from here.

Source

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

Installation

  • 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 your trac.ini file under the components section the following:
    [components]
    svnpolicies.* = enabled
    

Users with TRAC_ADMIN can access the admin panel. TracFineGrainedPermissions can be used to give access to the TracSvnPolicies panel without granting access to all admin panels.

Configuration

The configuration file has the following settings:

  • AUTHOR_URL_TEMPLATE - this string is used to create the URL at which the author of the commit has its 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.
  • TRAC_ADMIN - path to the trac-admin executable.

Recent Changes

16161 by rjollos on 2016-12-23 22:10:28
1.0dev: Finish implementation of TracFineGrainedPermissions

The implementation was started in r16090, but contained errors
and ommissions.

16120 by rjollos on 2016-12-19 16:01:05
1.0dev: Add license headers

Patch by figaro.

16094 by rjollos on 2016-12-18 06:27:09
1.0dev: Organize imports and add setup.cfg
(more)

Author/Contributors

Author: andrei2102
Maintainer: Committo-Ergo-Sum
Contributors:

Last modified 8 years ago Last modified on Dec 17, 2016, 7:10:34 AM

Attachments (4)

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

Download all attachments as: .zip