Search code examples
version-controlversioningperforce

View a file with specific version in Perforce


I am new to Perforce and asking for help with following simple questions:

  1. How to list all the versions of a file in Perforce (command-line)
  2. How to view a file with a specific version only.

I searched question 2 online, but didn't have any luck.

Thank you in advance!


Solution

    1. p4 filelog FILENAME
    2. p4 print FILENAME#VERSION