Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 542
user1972031 Avatar asked Sep 04 '14 21:09

user1972031


People also ask

How do I view files in changelist?

To display shelved changelists, use p4 changes -s shelved , and then use p4 describe -s -S changelist to display the files in the selected changelist(s).

How do I get latest from Perforce?

To get the latest revision, right-click the file and choose Get Latest Revision. To get a previous revision, right-click the file and choose File History. The History tab opens. This tab displays the revision history of the file or folder selected in the tree pane.

How do I find the Perforce version?

The p4 info command displays information about the Perforce application and the shared versioning service. Here's an example of the output from p4 info . If the server were a replica of another server, that information would be supplied. To obtain the version of the Perforce application ( p4 ), use p4 -V .


1 Answers

  1. p4 filelog FILENAME
  2. p4 print FILENAME#VERSION
like image 76
Samwise Avatar answered Oct 07 '22 21:10

Samwise