Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn revision size in bytes

Tags:

svn

Is there a way to tell how big a SVN revision is?

I don't mean in a hook, but after the fact (e.g. with svnlook?). I need the (rough) size in bytes, including any binary files that may have been added/changed.

like image 297
Assaf Lavie Avatar asked Jan 07 '10 09:01

Assaf Lavie


1 Answers

If you mean "By how much did it increase the size of my repository?", and you have access to the server, and you are using FSFS, and you haven't packed your repository, then there is a way:

Let's assume you're looking for the "size" of revision 12345. Inside your repository's directory you'll find the subdirectory db. Here's a picture:

    repository/
        db/
            revs/
                12/
                    12345   <----+
            revprops/            | add together the sizes of these two
                12/              | files.
                    12345   <----+
like image 87
bendin Avatar answered Sep 20 '22 01:09

bendin