wiki:MultiProjectCommitTicketUpdaterPlugin

Version 2 (modified by Ruth Trevor-Allen, 12 years ago) (diff)

--

Multi-project version of the inbuit commit_ticket_updater tool

Description

This plugin is useful if you have multiple Trac projects sharing a repository. By prepending the project name to the ticket number in the approved InterTrac fashion, you can add comments to tickets in specific projects only.

Configuration

Install

In the usual way:

sudo easy_install 0.12/

Enable the plugin

In the components section of trac.ini:

[components]
multicommitupdater.* = enabled

Set options

[multicommitupdater]
envelope = {}
commands.close = fix fixes fixed-forever
commands.refs = re see rel

Where

  • envelope (either blank or two characters) specifies a pair of characters which must enclose all commit messages, or none if left blank. Default: blank.
  • commands.close is a space separated list of commands which can be used to close tickets. Default: close closed closes fix fixed fixes
  • commands.refs is a space separated list of commands which can be used to reference tickets. Default: addresses re references refs see

Gotchas

  • The plugin must be enabled in every project which will be using it. The simplest way to do this is with a shared global configuration file (see trac:TracIni#GlobalConfiguration).

Bugs/Feature Requests

Existing bugs and feature requests for MultiProjectCommitTicketUpdaterPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:multiprojectcommitticketupdaterplugin here].

Source

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

Example

Once you've set up the plugin, you can add comments to tickets using something like this:

svn commit -m "Re my-other-project:#12, #13, changed blah and foo to do this and that. Closes my-project:#10 and #12."

Recent Changes

15730 by rjollos on 2016-08-23 17:17:53
1.0.0dev: Simplify and fix several issue with ticket command matching

Refs #12852.

15728 by rjollos on 2016-08-22 23:19:27
0.12.2: Add license keyword to setup.py

Fixes #12514.

15727 by rjollos on 2016-08-22 23:18:24
1.0.0dev: Add license text

Refs #12514.

(more)

Author/Contributors

Author: fleeblewidget
Maintainer: fleeblewidget
Acknowledgements: based on commit_ticket_updater, copyright Edgewall Software