wiki:TracCvsntIntegrationPlugin

Version 3 (modified by j98789, 3 years ago) (diff)

--

CVSNT Plugin for Trac

Description

This experimental plugin is my attempt to integrate CVSNT and Trac. My configuration is CVSNT v2.0.51c and the latest Trac 0.13 trunk on the same WinXP machine.

It consists of a loginfo hook script for CVSNT and a plugin for Trac. The loginfo hook script creates a changeset database dedicated for this integration. Then it calls trac-admin to add the changeset. The Trac plugin provides a CVSNT repository that gets the change info from this new database.

The changesets appear in the Timeline and Tickets get updated (of course depending on the commit log message).

The CVSNT repository does not (yet) support the source browser.

Feedback/contributions would be appreciated (I have no python experience, no trac experience and only very basic cvs knowledge)

Bugs/Feature Requests

Existing bugs and feature requests for TracCvsntIntegrationPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

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

Example

  1. CVSNT hook set-up:

1.1 Copy CvsntLoginfo.py and loginfo_script.py to your machine (probably the CVSNT root folder is an appropriate place).

1.2 Edit the string constants at the top of loginfo_script.py to match your configuration.

1.3 Modify the CVSNT loginfo hook so it will call python to run loginfo_script.py (not that the hook runs in an empty environment so you require full path names).

  1. Trac plugin set-up:

2.1 In CvsntPlugin.py modify the string constant at the begin of the CvsntRepository class to match the database file in loginfo_script.py.

2.2 Build and install the egg.

2.3 Make sure the CvsntPlugin is enabled and also the Trac CommitTicketUpdater and CommitTicketReferenceMacro.

2.4 In Trac add a repository. You now get a new type cvsnt. The directory should be the root of your CVSNT repository.

You should be all set now. Commit a file and see what happens.

Recent Changes

[10858] by j98789 on 2011-11-01 23:22:16
bugfix: handle quotes in log message
[10808] by j98789 on 2011-10-20 22:53:56
refactored variable name
[10807] by j98789 on 2011-10-20 22:46:13
store our changeset db inside the trac project folder

Author/Contributors

Author: j98789
Maintainer: j98789
Contributors:

Attachments (1)

Download all attachments as: .zip