[[PageOutline(2-5,Contents,pullout)]] = 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:''' [[Image(log.jpg, 80%, border=2)]] '''Settings for email notifications:''' [[Image(notifications.jpg, 80%, border=2)]] '''Advanced settings for log messages during a commit:''' [[Image(advanced.jpg, 80%, border=2)]] '''Disallow commits, ie make the svn repository read-only:''' [[Image(readonly.jpg, 80%, border=2)]] 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 [report:9?COMPONENT=TracSvnPoliciesPlugin here]. If you have any issues, create a [/newticket?component=TracSvnPoliciesPlugin new ticket]. [[TicketQuery(component=TracSvnPoliciesPlugin,group=type,format=progress)]] == Download Download the zipped source from [export:tracsvnpoliciesplugin here]. == Source You can check out TracSvnPoliciesPlugin from [/svn/tracsvnpoliciesplugin here] using Subversion, or [source:tracsvnpoliciesplugin browse the source] with Trac. == Installation * Get a archive with the plugin on your computer from [export:tracsvnpoliciesplugin 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: {{{#!ini [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 [[ChangeLog(tracsvnpoliciesplugin, 3)]] == Author/Contributors '''Author:''' [wiki:andrei2102] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''