Im having one hell of a time trying to create a change list that returns the actual change list id thats avail from p4.
I have tried
$out = $p4->run('change','-o'); $out = $p4->run('change','i');
print_r($out);
any thoughts on this? seem like im missing the ability to pass a description value
Here is the updated piece of code im using and the returned data
$change = $p4->run('change', '-o');
$change[0]["Description"] = "Some description";
d($change);
$out = $p4->run_submit('-i',$change);
d($out);
Here is the returned data
Array
(
[0] => Array
(
[Change] => new
[Client] => steve-contentdev
[User] => stevet
[Status] => new
[Description] => Some description
)
)
[P4.run()] Errors during command execution( "p4 submit -i" ) [Error]: Error in change specification. Missing required field 'Change'. Error: Error in change specification. Missing required field 'Change'.
the d function is just a print_r with around it to make it look nice.
After a bit of fiddling I ran into the input command which input values into a form, and from the p4 change it requires some stuff to be added.. here is the final code for php that will auto create a change list for you