[p4] diff for a given pending changelist?

Tony Sweeney sweeney at addr.com
Sat Nov 8 10:45:54 PST 2008


Roy Smith wrote:
> Is there any way to see the diff for a pending changelist?  "p4  
> describe 123" will tell me what files are part of change 123, but  
> won't give me the diffs if its pending.  "p4 diff" will give me diffs  
> for *all* my changed files, not just those part of a specific pending  
> change.
>
> I'm sure I could take the output of p4 describe and munge it into a  
> bunch of p4 diff commands, but that's a pain.  This seems like such an  
> obvious thing to want to do, I'm surprised there isn't (or at least  
> doesn't appear to be) any simple way to do it.  Am I just missing  
> something?
>   
Try 'p4 opened -c <changenum> | sed -e 's/#.*$//' | p4 -x - diff'.

Tony.
> -------------------
> Roy Smith <smith_roy at emc.com>
> Software Guy, EMC
> 1133 Westchester Ave, 3rd floor
> White Plains, NY 10604
> +1 914 461 3597
> AIM: roysmith649
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
>
>   



More information about the perforce-user mailing list