Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get diffs of all the files in a pending Perforce changelist?

I want to get diffs on files in a specific pending changelist. I wish I could do this:

p4 diff -c 999 

Can someone help me string together some csh magic to make this happen?

Maybe take the output of p4 opened -c 999 and piping it to p4 diff?

like image 899
ack Avatar asked Jul 13 '09 19:07

ack


People also ask

How does p4 DIFF Work?

p4 diff runs a diff program on your workstation that compares files in your workspace to revisions in the depot. This command takes a file argument, which can contain a revision specifier. If a revision specifier is included, the file in the client workspace is diffed against the specified revision.

What is CL 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.

How do I delete a file from Changelist?

You can Ctrl+left-click multiple files, then right-click on one of them and select Move to another changelist... . You can also choose to Submit... the files, and when the dialog box appears, their will be checkboxes next to each file. Uncheck the files you do not want to submit.


1 Answers

Shelve the changes in the pending changelist, then run

p4 describe -S -du 999 
like image 54
Alexander Bird Avatar answered Oct 23 '22 16:10

Alexander Bird