[p4] Getting the size of a branch

Jamison, Shawn sjamison at ciena.com
Tue Apr 29 11:49:12 PDT 2008


What about the -a option.  
I don't care about the space the head revision takes up.  I need the
total space that all revisions take up.
 
Correct me if I'm wrong here.  
It seems that for text files the -a option would skew the results by
reporting the full size of the file for each revision instead of the
head revision plus the sizes of the diffs back to rev1.
 

-Shawn Jamison> 
Ciena Corp. 
Perforce Admin 

 

________________________________

From: Shawn Hladky [mailto:p4shawn at gmail.com] 
Sent: Tuesday, April 29, 2008 2:21 PM
To: Roy Smith
Cc: Jamison, Shawn; perforce-user at perforce.com
Subject: Re: [p4] Getting the size of a branch


or p4 sizes -s ... (on a fairly recent server)


On Tue, Apr 29, 2008 at 9:56 AM, Roy Smith <smith_roy at emc.com> wrote:


	Something like:
	
	 p4 fstat -Ol ...| grep '^... fileSize'
	
	will get you most of the way there.  Then, sum the sizes with
python/
	perl/awk/whatever.
	



	On Apr 29, 2008, at 10:55 AM, Jamison, Shawn wrote:
	
	> Howdy everyone,
	>
	> Is there a way to get the size of a branch from Perforce
without
	> having
	> to sync the files out to local disk?
	>
	> Thanks for all your help.
	> -Shawn Jamison>
	> Ciena Corp.
	> Perforce Admin
	>
	> _______________________________________________
	> perforce-user mailing list  -  perforce-user at perforce.com
	> http://maillist.perforce.com/mailman/listinfo/perforce-user
	>
	
	
	-------------------
	Roy Smith <smith_roy at emc.com>
	Software Guy, EMC Common Management Group
	44 South Broadway, 7th floor
	White Plains, NY 10601
	+1 914 580 3427
	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