user966588
user966588

Reputation:

How to find out last changelist number for a file

Is there a way we can find out the last changelist number for a file in Perforce?

Upvotes: 2

Views: 374

Answers (1)

user100766
user100766

Reputation:

You're looking for p4 fstat:

$ p4 fstat //depot/path/to/file
... depotFile //depot/path/to/file
... headAction edit
... headType ktext
... headTime 1348571116
... headRev 8
... headChange **496308**
... headModTime 1348571025
... 
$

If you mapped the file to a client-workspace, p4 filelog -m 1 works similar.

Upvotes: 4

Related Questions