4 messages in com.perforce.p4ruby[p4ruby] p4.run_changes with user yie...
FromSent OnAttachments
James Cowlishaw26 Apr 2007 04:23 
Robert Cowham26 Apr 2007 04:55 
James Cowlishaw26 Apr 2007 04:59 
Tony Smith26 Apr 2007 07:55 
Subject:[p4ruby] p4.run_changes with user yields no results
From:Robert Cowham (rob@vaccaperna.co.uk)
Date:04/26/2007 04:55:53 AM
List:com.perforce.p4ruby

Try passing in an array of parameters (argv style):

changes = p4.run_changes("-u", "jcowlishaw")

Robert

_____

From: p4ru@perforce.com [mailto:p4ruby-bounces at perforce.com] On Behalf Of James Cowlishaw Sent: 26 April 2007 12:24 To: p4ruby at perforce.com Subject: [p4ruby] p4.run_changes with user yields no results

Hey guys, Being new to this. I'm having troubles with listing change lists. The following code produces an empty array

changes = p4.run_changes("-u jcowlishaw")

while

p4 changes -u jcowlishaw

produces a long list.

I know the p4.connect has worked, because

changes = p4.run_changes("-m 5")

produces the last five change lists on the server.

Am I doing something wrong, or is there a server incompatibility (I'm connecting to a 2006.2/113956 server)?

Thanks in advance for any hints you can give. James.