389 | | After enabling the components, repositories can be configured through the "Repositories" admin panel or by editing [TracIni#repositories-section trac.ini]. |
390 | | |
391 | | === Automatic reference to the SVN changesets in Trac tickets |
392 | | |
393 | | You can configure SVN to automatically add a reference to the changeset into the ticket comments, whenever changes are committed to the repository. The description of the commit needs to contain one of the following formulas: |
394 | | * '''`Refs #123`''' - to reference this changeset in `#123` ticket |
395 | | * '''`Fixes #123`''' - to reference this changeset and close `#123` ticket with the default status ''fixed'' |
396 | | |
397 | | This functionality requires a post-commit hook to be installed as described in [wiki:TracRepositoryAdmin#ExplicitSync TracRepositoryAdmin], and enabling the optional commit updater components by adding the following line to the `[components]` section of your [wiki:TracIni#components-section trac.ini], or enabling the components in the "Plugins" admin panel. |
398 | | {{{#!ini |
399 | | tracopt.ticket.commit_updater.* = enabled |
400 | | }}} |
401 | | For more information, see the documentation of the `CommitTicketUpdater` component in the "Plugins" admin panel. |
| 389 | After enabling the components, repositories can be configured through the //Repositories// admin panel or by editing [TracIni#repositories-section trac.ini]. Automatic changeset references can be inserted as ticket comments by configuring [TracRepositoryAdmin#Automaticchangesetreferencesintickets CommitTicketUpdater]. |