Reputation: 456
P4V provides information about each checked out file such as whether it is at the latest revision (out-of-date files have a yellow circle), and whether it needs to be resolved (question mark). Is there a way to get this info using the P4 command line client?
I've tried "p4 describe " and "p4 status", but these do not provide the info I'm looking for. Describe lists which revision each file is at, but not whether it is at the latest revision.
Upvotes: 2
Views: 5439
Reputation: 71517
To see whether a file needs to be synced:
p4 sync -n FILE
To see whether a file needs to be resolved:
p4 resolve -n FILE
To see whether a file is open:
p4 opened FILE
To see all the revisions of a file:
p4 filelog FILE
etc
You can also do:
p4 fstat <flags> FILE
to get a giant dump of information about a file (formatted for easy parsing into a dictionary rather than human readability).
For a full list of commands, see:
p4 help commands
For more information on a particular command:
p4 help COMMAND
Upvotes: 3