[p4] P4Ruby tickets

Robert Cowham robert at vizim.com
Fri Oct 10 15:52:48 PDT 2008


I had the same problem - it's a misleading error message - here is Perforce
support:

The "p4 tickets" command is implemented on the client side; if you run it
against the server, you'll get that error because it's not a valid server
command.  (The piece about 2004.2, although confusing in this case, is there
because a 2004.2+ p4 will catch the "tickets" command rather than send it to
the server, where an older p4 will send it to the server and then get that
error message telling you to upgrade.)

To implement the "p4 tickets" command in your app, find the ticket file
(P4TICKETS if set, $HOME/.p4tickets or %USERPROFILE%/p4tickets.txt if not)
and
print it to the screen.
 

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Riaz, Bob
> Sent: 10 October 2008 22:39
> To: perforce-user at perforce.com
> Subject: [p4] P4Ruby tickets
> 
> When I try to run run_tickets on a P4Ruby object I get the following
> warning: 
> 
>  
> 
> P4Exception: [P4#run] Warnings during command execution( "p4 
> tickets" )
> 
>  
> 
>             [Warning]: Must upgrade to 2004.2 p4 to access tickets.



More information about the perforce-user mailing list