[p4] Pending Changelist Size

Michael Mirman Michael.Mirman at mathworks.com
Wed Jul 24 04:47:36 PDT 2013

If the "data size" means to be a sum of the length of each of the files in a pending change, this can be done only on the client side - server doesn't kjnow any specifics about pending files (except that they are in a pending change).
Therefore, in Unix I could do something like this:

-> du -sk `p4 opened | awk -F# '{print $1}' | p4 -x - where | awk '{print $3}'` | awk '{sum+=$1} END {print sum}'


--Michael Mirman
MathWorks, Inc.
3 Apple Hill Dr, Natick, MA 01760

-----Original Message-----
From: perforce-user-bounces at perforce.com [mailto:perforce-user-bounces at perforce.com] On Behalf Of Elliott Lock
Sent: Wednesday, July 24, 2013 7:10 AM
To: perforce-user at perforce.com
Subject: Re: [p4] Pending Changelist Size

Posted on behalf of forum user 'Elliott Lock'.

Sorry I should have been clearer. I'd like to have the total data size of a

For example if I had:

Changelist A1:
File A1
File B1
File C1
File D1
File E1

Changelist B1:
File A1
File B2
File C2

I'd like to know "Changelist A1" total data size.



Please click here to see the post in its original format:
perforce-user mailing list  -  perforce-user at perforce.com

More information about the perforce-user mailing list