Opened 18 years ago
Closed 3 years ago
#625 closed enhancement (wontfix)
Integrate Trac tickets with Perforce jobs
Reported by: | Lewis Baker | Owned by: | ttressieres |
---|---|---|---|
Priority: | normal | Component: | PerforcePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
It would be quite useful to be able to replicate ticket information from Trac in Perforce's builtin jobs so that developers can use the standard p4
command line tools to:
- update ticket information (
p4 jobs
) - associate changes with tickets (
p4 fix
) - query whether the fix for a ticket is present on a specified branch (
p4 fixes
)
Perforce already supports altering the status of a job when an associated change is submitted. Hooking into this would reduce the need for developers to remember to enter information in two different systems (Trac and Perforce).
Attachments (2)
Change History (11)
comment:1 Changed 18 years ago by
Owner: | changed from Lewis Baker to anonymous |
---|---|
Status: | new → assigned |
Trac Release: | 0.9 → 0.10 |
comment:2 Changed 18 years ago by
Owner: | changed from anonymous to ttressieres |
---|---|
Status: | assigned → new |
comment:4 follow-up: 5 Changed 18 years ago by
Status: | new → assigned |
---|
comment:5 Changed 18 years ago by
Replying to ttressieres:
Hi.
I've tried to use this scripts and I've been expiriencing some problem. I've got this error while running this script:
Traceback (most recent call last): File "p4_trac_jobs.py", line 415, in ? ticket.mainLoop() File "p4_trac_jobs.py", line 380, in mainLoop self.tktperforce.updateTicket(p, self.mergedTickets[p]) File "p4_trac_jobs.py", line 183, in updateTicket job = perforce.Job(self.p4, jobname) AttributeError: 'module' object has no attribute 'Job'
It seems to me this error is related to this words:
Requirements
- PyPerforce 0.3a1 with a patch for jobs
You can find this requirements here: http://trac-hacks.org/wiki/PerforceJobScript
I dont know where I should get this patch for jobs.
Maybe I'm not right with this idea about PyPerforce patch, so tell me please what wrong with this script.
P.S.
My configuration:
- python-2.4.3
- Trac 0.10
- PyPerforce-0.3a1-py2.4
- TracPerforce-0.4.2-py2.4
- perforceplugin-632.patch
- PyProtocols-0.9.3-py2.4
comment:6 Changed 18 years ago by
Hi, I've sent a mail to lewis baker to update the PyPerforce library. But by now it is not available, so i will attach the two files necessary for this script.
comment:7 Changed 17 years ago by
The trunk of PyPerforce now has these changes integrated.
There is also a fix for the "'p4 jobs' outputs 2nd and subsequent jobs to 'records' instead of 'forms'" issue in there.
comment:8 Changed 17 years ago by
I would like to have a look at the new P4 Defect Tracking Gateway to see how easy it is to implement using that framework. It seems that a lot of the hard work might already be done by Perforce.
comment:9 Changed 3 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Plugin is deprecated.
i'm near from a solution