wiki:TracTicketChangelogPlugin

Version 6 (modified by richard, 4 years ago) (diff)

--

TracTicketChangelogPlugin

Description

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.

Example

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

Download the zipped source from here.

Source

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

Install

You can install this software as normal Trac plugin.

  1. Uninstall TracTicketChangelogPlugin if you have installed before.
  1. Change to the directory containning setup.py.
    • (Optional): If you are using Trac 0.12 with i18n, you should compile language files here:
      python setup.py compile_catalog -f
      
  1. If you want to install this plugin globally, that will install this plugin to the python path:
    • python setup.py install
  1. If you want to install this plugin to trac instance only:
    • python setup.py bdist_egg
    • copy the generated egg file to the trac instance's plugin directory
      cp dist/*.egg /srv/trac/env/plugins
      
  1. Config trac.ini:
    [components]
    ticketlog.* = enabled
    
    [ticketlog]
    # optional
    log_pattern = \s*#%s+\s+.*
    

Prerequisite

  • simplejson

Usage

  • make sure you add TICKETLOG_VIEW permission to users
  • you can config log_pattern to define your pattern

Recent Changes

[14170] by hasienda on 2014-09-16 22:50:26
TracTicketChangelogPlugin: (i18n) Provide more messages for translation, refs #11983.

Move texts from js file to python script for translation, since a separate js
message catalog would be overkill for this plugin.

Message catalog and translation update as well as some PEP8 changes
(line-length) are included as well.

[14169] by hasienda on 2014-09-16 21:34:22
TracTicketChangelogPlugin: Fix i18n docs, extract messages add German translations, refs #11983.

Thanks to Torge Riedel for preparing these changes.

[14162] by rjollos on 2014-09-11 03:12:33
Allow trailing colon in default log_pattern.

Author/Contributors

Author: richard
Maintainer: richard
Contributors:

Attachments (1)

Download all attachments as: .zip