| 1 | = Svn Policy Plugin = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | 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. |
| 6 | |
| 7 | 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: |
| 8 | * add the email addresses to which the svn commit mails to be sent; |
| 9 | * enforce a svn log message format; |
| 10 | * enable the control of tickets from the svn commit messages; |
| 11 | * control the svn properties set for revisions; |
| 12 | * set the svn repository as readonly; |
| 13 | * write custom scripts to run at post-commit and pre-commit. |
| 14 | |
| 15 | The plugin has a settings file '''svnpolicy.conf''' that must be configured before deployment. |
| 16 | |
| 17 | == Bugs/Feature Requests == |
| 18 | |
| 19 | Existing bugs and feature requests for TracSvnPoliciesPlugin are |
| 20 | [report:9?COMPONENT=TracSvnPoliciesPlugin here]. |
| 21 | |
| 22 | If you have any issues, create a |
| 23 | [http://trac-hacks.org/newticket?component=TracSvnPoliciesPlugin&owner=andrei2102 new ticket]. |
| 24 | |
| 25 | == Download == |
| 26 | |
| 27 | Download the zipped source from [download:tracsvnpoliciesplugin here]. |
| 28 | |
| 29 | == Source == |
| 30 | |
| 31 | You can check out TracSvnPoliciesPlugin from [http://trac-hacks.org/svn/tracsvnpoliciesplugin here] using Subversion, or [source:tracsvnpoliciesplugin browse the source] with Trac. |
| 32 | |
| 33 | == Example == |
| 34 | |
| 35 | The configuration file has the following settings: |
| 36 | * PYTHON_SITE_DIR - the path to the directory in which is installed the trac egg. This setting is used to set the PYTHONPATH environment variable of the scripts that run at commit time. |
| 37 | * 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. |
| 38 | * AUTHOR_URL_TEMPLATE - this string is used to create the URL at which the author of the commit has it's profile. |
| 39 | * CHANGESET_URL - this string is used to create the URL at which the chageset with the commit can be found. |
| 40 | * SVNNOTIFY - path on the file system where the '''svnnotify''' script can be found. |
| 41 | * SVNLOOK - - path on the file system where the '''svnlook''' script can be found. |
| 42 | * SMTP_HOST - the server that sends emails for trac. |
| 43 | * SMTP_USER - the user with whom the trac authenticates to the mail server. |
| 44 | * SMTP_PASSWORD - the password with whom the trac authenticates to the mail server. |
| 45 | |
| 46 | == Recent Changes == |
| 47 | |
| 48 | [[ChangeLog(tracsvnpoliciesplugin, 3)]] |
| 49 | |
| 50 | == Author/Contributors == |
| 51 | |
| 52 | '''Author:''' [wiki:andrei2102] [[BR]] |
| 53 | '''Contributors:''' |