Reputation: 1
I've noticed that a file's revision is not latest in p4v,so I wonder is there any way to get the revision of a local file by using cmd since p4v already have done it.
I've already checked all the p4 commands like "filelog",but all of these command return info of depot file instead of local file.
Upvotes: 0
Views: 901
Reputation: 71424
Use p4 have
to see what revision of a file you have in your workspace (i.e. the revision you last synced from the depot). Like most commands that operate on files, this takes a file argument so you can limit it to a specific file; by default it reports all the files you have in your workspace.
You can also use p4 sync -n
to "preview" a sync, which will tell you whether there are files that you don't have the latest revision of.
Upvotes: 1