You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Anthony Muller <An...@hyperoffice.fr> on 2005/05/26 13:38:34 UTC

Repository or folder size ?

Hello,

Does a Subversion command exist to get the size of the remote repository
or a particular folder of the repository? (Without checkout whole
content)

Regards,
Anthony


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Repository or folder size ?

Posted by Toby Johnson <to...@etjohnson.us>.
Blair Zajac wrote:

> Anthony Muller wrote:
>
>> Hello,
>>
>> Does a Subversion command exist to get the size of the remote repository
>> or a particular folder of the repository? (Without checkout whole
>> content)
>>
>> Regards,
>> Anthony
>
>
> Hi Anthony,
>
> No, not on a entire or even a folder basis currently.  You could pipe 
> the output of
>
> svn list -Rv $URL
>
> to a summing program and get the file sizes and sum them up.

This would work as long as you didn't duplicate any info due to counting 
"cheap-copied" folders twice. For example, if your repository is 
organized into trunk/branches/tags, running a sum from the repository 
root would falsely inflate the actual size of the repository.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Repository or folder size ?

Posted by Blair Zajac <bl...@orcaware.com>.
Anthony Muller wrote:
> Hello,
> 
> Does a Subversion command exist to get the size of the remote repository
> or a particular folder of the repository? (Without checkout whole
> content)
> 
> Regards,
> Anthony

Hi Anthony,

No, not on a entire or even a folder basis currently.  You could pipe 
the output of

svn list -Rv $URL

to a summing program and get the file sizes and sum them up.

The only problem is that directories do not get a column output, so you 
can't use a awk or print that one column, instead you'd have to use cut 
and pick from column X to Y.

Regards,
Blair

-- 
Blair Zajac, Ph.D.
<bl...@orcaware.com>
Subversion and Orca training and consulting
http://www.orcaware.com/svn/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org