Alex Rivera | Logout

Determine total size of SVN directory/trunk

Asked 2009-11-16T07:03:58.010
45

Is there a way to count/calculate the total size of a svn directory if you were to checkout a revision?

I have limited internet downloads so I need to know how big something is before I go and download it.

Thank you.

Edit
Report

2 Answers

10

Using the below, you can determine the size of individual files.

svn list --verbose --recursive http://svn/repo/path

Maybe you can look around this command to find a way?

answered 2009-11-16T07:09:31.203
7

I've tested the PowerShell solution and it just needs a small correction:

([xml](svn list --xml --recursive https://svn/repo/path)).lists.list.entry | measure-object -sum size

It some time to get the xml, but works very well.

answered 2011-03-18T14:06:18.460

Your Answer