merlin2011
merlin2011

Reputation: 75545

How do I find the last time a particular file was updated in perforce?

That is, for a given source file foo.c, how do I figure out the last time it was updated by anyone?

Upvotes: 1

Views: 562

Answers (1)

dwikle
dwikle

Reputation: 6978

Use the following:

p4 filelog -s -m1 file

Explanation:

  • file is the local path or depot path to the file in question
  • -m1 limits the output to the single most recent revision of the file
  • -s specifies that you want a shortened output

Example:

p4 filelog -s -m1 foo.c
p4 filelog -s -m1 /path/on/disk/to/foo.c
p4 filelog -s -m1 //depot/path/to/foo.c

Upvotes: 2

Related Questions