[p4python] P4 changes not returning expected change

Tom Cramer TCramer at vigilgames.com
Thu Jun 25 12:42:55 PDT 2009


I'm seeing behavior from p4 changes when run through the 2008.2 Python API
that seems to indicate it is ignoring any parameters fed to it.  Here is
some quick example code showing the issue:

#! /usr/bin/python

from P4 import P4

p4 = P4()
p4.port = "perforce:1666"
p4.user = "user"
p4.client = "user-client"

p4.connect()
p4Changes = p4.run_changes("-m1 -s submitted //depot/... at 2009/06/12")
print p4Changes
p4.disconnect()

When I run the above code, I get the latest changelist, pending or
submitted.  Running the same command using p4.exe (p4 changes -m1 -s
submitted //depot/... at 2009/06/12) returns the expected result.

Any ideas?

Thanks,
-tom



More information about the p4python mailing list