Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2026.1

# Displaying file revision history

To display the revision history of a file, issue the `p4 filelog filespec` command. The following example shows how `p4 filelog` displays revision history.

The command

    p4 filelog //JamCode/dev/jam/jam.c

might output:

Copy

    //JamCode/dev/jam/jam.c
    ... #35 change 627 edit on 2011/11/13 by earl@earl-dev-yew (text)
    'Handle platform variants better'
    ... #34 change 598 edit on 2011/10/24 by raj@raj-althea (text)
    'Reverse previous attempt at fix'
    ... ... branch into //JamCode/release/jam/2.2/src/jam.c#1
    ... #33 change 581 edit on 2011/10/03 by gale@gale-jam-oak (text)
    'Version strings &amp; release notes'

To display the entire description of each changelist, specify the `-l` option.

Your search for returned results