Print detailed information about files' revisions.
p4 [g-opts] filelog [-c change] [-h -i -l -L -t -p -s] [-m max] FileSpec[revSpec]
p4 filelog describes each revision of the files provided as arguments. At least one file or file pattern must be provided as an argument. If the file specification includes a revision range, only the specified revisions are listed.
By default, the output consists of one line per revision in reverse chronological order. The format of each line is:
... #rev change chnum action on date by user@client (type) 'description'
where:
action is the operation the file was open for:
add
, edit
, delete
,
branch
, import
, or
integrate
If the action is import
(that is, integrate from a
remote depot) or integrate
,
Helix Server
displays a second line description, formatted as
... #integration-action partner-file
For a full description of integration
actions, see p4
integrated
.
-t
option is used)description is the first 30 characters of the corresponding changelist’s description
If the -l
option is used, the
description
is the full changelist description as
entered when the changelist was submitted. If the -L
option is used, the description is the full changelist description,
truncated to 250 characters.
By default, this command is optimized not to display history of a file which is deleted in the most recent commit, or has been removed previously.
To view the full history of a deleted file, specify the -d
flag.
This option cannot be used with paths containing wildcards.
The -m max
option displays at most max
commits.
The --first-parent
option follows only the first parent of each commit.
|
Display only files submitted at the specified changelist number. |
|
Display file content history instead of file name history. The
revisions that are listed include revisions of other files that
were branched/copied (using |
|
Follow file history across branches. If a file was created by
integration ( |
|
List long output, with the full text of each changelist description. |
|
List long output, with the full text of each changelist description truncated at 250 characters. |
|
List only the first |
|
When used with the |
|
Display a shortened form of output by ignoring non-contributory integrations (for example, integrations involving "branch into" or copy into" operations are not displayed) |
|
Display the time as well as the date. |
|
See Global Options. |
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
Yes |
No |
|
p4 filelog
's output can be quite large
when called with highly non-restrictive file arguments (for example,
p4 filelog //depot/...
displays the revision
history for every file in the depot), p4 filelog
commands may be subject to a maxresults
limitation as set
in p4 group
.-i
and the -m maxrev
options are used, and a branch is encountered within the most recent
maxrev
revisions of the file, the most recent
maxrev
revisions of the file prior to the branch
point are also displayed. p4 filelog -i
follows
branches down to a depth of 50 levels, which should be more than
sufficient for any site.+Sn
) are displayed with an action of
purge
.
|
Display the revision history for every file under the depot’s
|
|
Display the revision history for |
|
If you do not have the latest revision of |
|
Show the revision history for files |
To read additional information about each file |
|
To display file information in a format suitable for scripts |
|
To view a list of open files |
|
To view a list of files you’ve synced to your client workspace |
|