p4 changes -m1 -s submitted | cut -f2 -d" "
It doesn't have to apply any filters this route.
I tried both ways and found the above to be a quick response.
-----Original Message-----
From: Andrew Nguyen [mailto:ANguyen at oblix.com]
Sent: Wednesday, February 12, 2003 5:06 PM
To: perforce-user at perforce.com
Subject: [p4] how to get the last changelist number
Greetings,
This is what I normally do to get the last changelist number
p4 changes -m 1 -s submitted //depot/... | cut -f2 -d" "
and this took me over 2 minutes to get a response.
Is there a better way in Perforce to get the last changelist number?
Thanks,
-Andy