Synchronize Perforce jobs from/to Trac tickets


This is a script used to synchronize Trac tickets to Perforce jobs. Status, user, and description are synchronized.

Perforce is a commercial, proprietary revision control system developed by Perforce Software.

Bugs/Feature Requests

Existing bugs and feature requests for PerforceJobScript are here.

If you have any issues, create a new ticket.


Download the zipped source from here.


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


  1. Download and install the requirements:
  2. Launch the script:
    $ python.exe --file p4trac.conf


You have to configure the script with the p4trac.conf file. Sample configuration:

trac_project  : /env/TracDatabase
debug         : 0
p4port        : localhost:1666
p4user        : User
p4passwd      : 0000000000000000000000000000
check_delay   : 60
first_check   : -1
dry_run       : 0
p4_to_trac :
    open      : new
    assigned  : assigned
    working   : assigned
    suspended : assigned
    closed    : closed
trac_to_p4 :
    new      : open
    assigned : assigned
    closed   : closed
    reopened : open
p4job_prefix  : job

Recent Changes

6717 by ttressieres on 2009-10-15 07:58:41
port script to Trac 0.11.5
5996 by ttressieres on 2009-06-09 09:59:15
only notify Trac users if ticket was saved
3012 by ttressieres on 2008-01-09 20:17:33
branch for 0.10, trunk will be used for 0.11


Author: ttressieres
Maintainer: ttressieres

Last modified 7 years ago Last modified on Mar 8, 2017, 7:55:44 PM