Version 20 (modified by figaro, 9 years ago) (diff)

Cosmetic changes, tagged with license

Show ticket relative changelogs


This plugin add a changelog list in ticket.

You do not need to switch from your coding environment to browser and comment ticket for this changeset anymore.

Just compose you log message following the pattern, then all done. The default pattern is add #ticketid before the log messages.

#ticketid any messages

This is done by scanning commit logs for ticket number which match a configurable regular expression.

Subversion, mercurial, git are tested.


For mercurial backend, since TracMecurial did not support repository cache yet, you should install TracMercurialChangesetPlugin to generate the repository cache.


For git backend, according to #7746, you should add following config to git section in the trac.ini file:

cached_repository = true
persistent_cache = true

You might need to run trac-admin repository resync after the change.


For example, when you commit for ticket #10, the commit log like:

#10 fixed blog

And you got a revision [1234]. After that, when open ticket #10, you can see a change log list as below.

Bugs/Feature Requests

Existing bugs and feature requests for TracTicketChangelogPlugin are here.

If you have any issues, create a new ticket.


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


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


You can install this plugin following the standard procedures described in TracPlugins.

  1. Uninstall TracTicketChangelogPlugin if you have installed before.
  2. Change to the directory containning
    • (Optional): If you are using Trac 0.12 with i18n, you should compile language files here:
      python compile_catalog -f
  3. If you want to install this plugin globally, that will install this plugin to the python path:
    • python install
  4. If you want to install this plugin to trac instance only:
    • python bdist_egg
    • copy the generated egg file to the trac instance's plugin directory
      cp dist/*.egg /srv/trac/env/plugins
  5. Add the following to the trac.ini file in the components section:
    ticketlog.* = enabled
    ; optional: custom your log message pattern
    log_pattern = \s*#%s[:\s]+.*
    ; optional: set log message's max length, default is no limit
    log_message_maxlength = 100


  • Make sure you add TICKETLOG_VIEW permission to users.
  • You can configure the log_pattern to define your pattern:
    %s in the pattern will be replaced with the referenced ticket number (e.g. 12345), so \s*#%s+\s+.* will be evaluated as \s*#12345+\s+.*.

Recent Changes

18070 by rjollos on 2021-03-16 21:50:56
TracTicketChangelogPlugin Extract messages on bdist_* command

Patch by Jun Omae.

Fixes #13969.

18038 by rjollos on 2021-03-03 18:44:11
TracTicketChangelogPlugin Bump version after release

Refs #13965.

18033 by rjollos on 2021-03-02 17:09:23
TracTicketChangelogPlugin 1.2.0dev: Extract messages

Remove templates path from ITemplateProvider impl

Refs #13965.



Author: richard
Maintainer: Ryan J Ollos
Contributors: hasienda, jun66j5, rjollos

Attachments (1)

Download all attachments as: .zip