This command lists each file that matches the file patterns provided as arguments. If a revision specifier is given, the files are described at the given revision. One file is listed per line, and the format of each line is:
• depot-file-location is the file's location relative to the top of the depot
• rev is the revision number of the head revision of that file
•
• change# is the number of the changelist that this revision was submitted in, andUnlike most Perforce commands, p4 files reports on any file in the depot; it is not limited to only those files that are visible through the client view. Of course, if a file pattern on the command line is given in client syntax, only client files are shown.
For each file, list all revisions within a specified revision range, rather than only the highest revision in the range. See the Global Options section.
Can File Arguments Use
Revision Specifier? Can File Arguments Use
Revision Range? Minimal Access Level Required
• The specified revision can be a revision range; in this case, only those files with revisions within the specified range are listed, and by default, only the highest revision in that range is listed. (To display information for all files within a revision range, use p4 files -a.)
• Since the output of p4 files can be quite large when called with highly non-restrictive file arguments (for example, p4 files //depot/... prints information about all the files in the depot), it may be subject to a maxresults limitation as set in p4 group.
Provides information about all depot files visible through the client view. Provides information about all depot file revisions that existed on December 10, 2000. p4 files @2001/03/31:08:00,@2001/03/31:17:00 Lists all files and revisions changed during business hours on March 31, 2001. Show information on the head revision of //depot/file.c. (that is, the highest revision in the implied range of #1,#head) Show information on every revision of //depot/file.c (that is, all revisions in the implied range of #1,#head)