Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list all the files changed by a perforce change list

Tags:

perforce

I have a specific change list, and from the command line I want to list all files that were a part of that change list. How do I do this?

like image 613
coffee Avatar asked Jun 17 '11 14:06

coffee


People also ask

What is a change list in perforce?

When you check out a file, Perforce adds information about the file to a changelist and changes the writable attribute of the file in your local workspace from read-only to read/write. A changelist defines a logical grouping of work across a set of files and folders.

What is a Changelist p4?

p4 change brings up a form for editing or viewing in the editor defined by the environment variable P4EDITOR . When no arguments are provided, this command creates a numbered changelist. All files open in the default changelist are moved to the numbered changelist.

What does p4 status do?

The p4 status command finds unopened files in a client's workspace and detects the following three types of inconsistencies between your workspace and the depot: Files present in the depot, present in your have list, but missing from your workspace. By default, these files are then opened for delete .

What does p4 reopen do?

Move opened files between changelists or change the files' type, or move the client's stream spec to a different changelist.


1 Answers

That's the describe command. To describe a particular changelist, you want p4 describe <changelist number>.

Update:

If you only want the file names, you can use the files command with the -F option to override the output format: p4 -Ztag -F "%depotFile%" files @=<changelist>

See http://www.perforce.com/blog/130826/fun-formatting for more information about the -F option.

like image 112
Mike O'Connor Avatar answered Oct 16 '22 00:10

Mike O'Connor