I'm writing a script to sync code from Perforce. I'm using P4Python. Im very new to this. i need P4Python commands for below.
- How to find latest Changelist number of a directory in Perforce.
e.g. Want to find latest CL of //cbuDepot/cpe/foo/... - How to sync the code from Perforce with latest CL e.g. Want to sync latest code from //cbuDepot/cpe/foo/...
- How to sync the code from Perforce to older CL(Not latest)
Find latest changelist number of a directory:
Sync to latest changelist:
Sync to older changelist:
To use a variable "changelist":