[p4python] P4 changes not returning expected change

Tom Cramer TCramer at vigilgames.com
Thu Jun 25 13:44:00 PDT 2009


That does indeed work, thanks.

I'm still getting up to speed with Python, good to know about the split call
there instead of needing to manually split up the string.

The script I'm working on was using p4.exe directly, I've been switching it
over to the API, and had just left the parameters as one long string.

Thanks,
-tom

> From: Sven Erik Knop <sknop at perforce.co.uk>
> Date: Thu, 25 Jun 2009 21:38:29 +0100
> To: Tom Cramer <TCramer at vigilgames.com>
> Cc: <p4python at perforce.com>
> Subject: Re: [p4python] P4 changes not returning expected change
> 
> Hi Tom,
> 
> You need to split the parameters to p4.run_changes() up into individual
> strings. The easiest way to do that is to add a .split() at the end:
> 
> p4Changes = p4.run_changes("-m1 -s submitted //depot/... at 2009/06/12".split())
> 
> The reason is that the server expects the shell to separate the
> individual arguments up already.
> 
> Let me know if this solves your problem, please.
> 
> Cheers
> 
> Sven Erik
> 




More information about the p4python mailing list