Integrate CVSNT with Trac


This experimental plugin integrates CVSNT and Trac. CVSNT is a version of CVS for Windows and licensed under GPL.

This plugin 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.

Tested on CVSNT v2.0.51c and Trac 0.13 trunk on the same Win-XP machine.

Bugs/Feature Requests

Existing bugs and feature requests for TracCvsntIntegrationPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from here.


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


  1. CVSNT hook set-up:
    1. Copy, and to your machine, probably the CVSNT root folder is an appropriate place.
    2. Edit the string constants in to match your configuration.
    3. Modify the CVSNT loginfo hook so it will call python to run Note that the hook runs in an empty environment, so you require full path names.
  2. Trac plugin set-up:
    1. In modify the string constant at the beginning of the CvsntRepository class to match the database file in
    2. Build and install the egg.
    3. Make sure the CvsntPlugin is enabled and also the Trac CommitTicketUpdater and CommitTicketReferenceMacro.
    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 to commit a file to CVSNT.

Recent Changes

14842 by rjollos on 2015-07-23 17:38:05
Moved code into 0.12 directory.
10858 by j98789 on 2011-11-01 22:22:16
bugfix: handle quotes in log message
10808 by j98789 on 2011-10-20 20:53:56
refactored variable name


Author: j98789

Last modified 7 years ago Last modified on Feb 15, 2017, 9:13:45 PM

Attachments (1)

Download all attachments as: .zip