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.