wiki:TracTicketChangelogPlugin

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

--

TracTicketChangelogPlugin

Description

This plugin add a code changelog list in ticket. This is done by scanning commit logs ticket number which match a configurable regular expression. Subversion, mercurial, git are tested.

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
  • the default commit log pattern is
    #ticketid any messages
    
  • you can config log_pattern to define your pattern

Example

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

#10 blah blah blah

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

Recent Changes

[14228] by rjollos on 2014-11-01 10:11:23
1.0dev: Implement fine-grained permission checks..Refs #11821.

Granting LOG_VIEW for the ticket realm is equivalent to granting the TICKETLOG_VIEW permission that existed in previous versions of the plugin.

[14227] by rjollos on 2014-11-01 10:10:57
1.0dev: Require LOG_VIEW permission to view the ticket log and remove definition of TICKETLOG_* permssions..Refs #11821.
[14196] by rjollos on 2014-10-10 03:58:47
1.0.0dev: Changed to major/minor/micro version scheme. Major and minor will match the supported Trac version. Micro will define the plugin release number.

Author/Contributors

Author: richard
Maintainer: richard
Contributors:

Attachments (1)

Download all attachments as: .zip