I want to get the latest list of changes to the depot for my current client specification. This will actually be a change that will be in sync with what I did p4 syncin my workspace.
I tried to do it p4 changes -s submitted -m1 -c [client-name], but this returns the most recent change that was sent through my client.
Execution p4 changes -s submitted -m1 //depot/path/...will work, but I do not want to request a client specification to find out what a depot path is. Plus, if there was more than one comparison, I would not know how to understand this.
There seems to be an easy way to do this that I don't see.
EDIT
I had to request the client specification, but as indicated in the accepted answer, I could use the client spec root as the path to the file and did not need to view the type mappings.
Final solution using P4Python:
clientspec = p4.fetch_client()
root = clientspec["Root"]
changes = p4.run("changes", "-s", "submitted", "-m1", root + "/...")
changenum = changes[0]['change']
source
share