[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Size of SVN Transaction vs Actual commit size

From: Ravi Roy <ravi.aroy_at_gmail.com>
Date: Fri, 7 May 2010 15:13:33 +0530

> >> Can somebody throw some light on this please?
>
> This question is both confused and confusing. You'll have more success
> if you use established subversion terminology correctly and avoid
> making up your own terminology without defining it.
>
> (I know it's a bit of a chicken-and-the-egg problem for a beginner.
> See: http://svnbook.red-bean.com/en/1.5/index.html)
>
> My guess: Subversion is working as designed and storing only the
> compressed difference between the newest version of your 1.28 MB file
> and some previous version of the same file. But, really, I can only
> guess:
>
> Right, this is what I understand.

> - Is the "1.28 MB file" a new to the repository, or did you commit
> changes to an existing 1.28 MB file?
>

My 1.28 MB file is new to repository.

>
> - What is this "transaction size" of which you speak? The size of a
> file like $REPO/db/revs/12/12345?
>

I am computing transaction size and assume that it should be the same as
original file being committed (i.e.1.28 MB)

> - Why wouldn't you say "revision" in this case?
> - Or are you really using a hook script to to peek at the actual
> transaction during the commit before it becomes a revision?
>
>
Yes, I am computing transaction size under $REPOS/db/transactions/*blahblah*

 *blahblah* get created under transactions folder as soon as I try commit
and there itself its size is being computed.
--------------------------------------------------------------------------------------------
REPOS="$1"
TXN="$2"
disk_usage=/usr/bin/du
ACTUAL_TRANSACTION_FOLDER=`ls $REPOS/db/transactions/`
TXN_SIZE=`$disk_usage -b $REPOS/db/transactions/$TXN.txn | cut -f1`
echo Transaction size is $TXN_SIZE. >&2
sleep 100
exit 1
----------------------------------------------------------------------------------

> - What is this "actual commit size" of which you speak?
>

 Actual commit size is 1.28 MB and this script gives me 5528 bytes.

 Something wrong with script or there is compression involved or what ?

>
> - I assume you can successfully retrieve the "1.28 MB" file from the
> repository. If so, the information must be there somewhere even if you
> can't quite explain it to yourself.
>
> - On that last point: http://svnbook.red-bean.com/en/1.5/index.html will
> help.
>
>
> Thanks

-RR
Received on 2010-05-07 11:44:03 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.