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

Re: Commit size

From: Vladimir Shun'kov <shunya.v_at_gmail.com>
Date: Wed, 13 Jun 2012 16:16:51 +0300

Would be enough have the number bytes of changes. I did disk usage in
pre-commit hook and disk usage in post-commit hook and then calculated
the difference. But I commited the new file with size 20Kb and size of
commit I recieved only 5Kb due some svn compression I guess.

Thank you.
Vlad.

2012/6/12 Cooke, Mark <mark.cooke_at_siemens.com>:
> [Please add your reply at the bottom, it makes it easier to read]
>
>> > 2012/6/12 Andy Levy <andy.levy_at_gmail.com>:
>> >> On Tue, Jun 12, 2012 at 5:21 AM, Vladimir Shun'kov
>> <shunya.v_at_gmail.com> wrote:
>> >>> Hello,
>> >>>
>> >>> Could you please help me with issue. Is it real to get
>> >>> commit size of user for statistic?
>> >>
>> >> How are you measuring size? Bytes? Lines? Number of files?
>> >> And to what end?
>> >>
>> >> There are a lot of problems around measuring user activity by this
>> >> sort of statistic. It's easily gamed, tends to ignore the
>> >> effects of improving code in many ways[1], and in the case of
>> >> binary files, it's pretty much meaningless.
>> >>
>> >> 1:
>> >> http://folklore.org/StoryView.py?story=Negative_2000_Lines_Of_Code.txt
>>
>> On Tue, Jun 12, 2012 at 7:55 AM, Vladimir Shun'kov
>> <shunya.v_at_gmail.com> wrote:
>> > Hello,
>> >
>> > I need measure in bytes. I tried use pre-commit and
>> > post-commit hooks but I received not real size of
>> > commit due svn uses some compression.
>>
> ...but what do you consider to be the "real size of commit" ~ the number of bytes of ...all affected files / ...just the changes / ...something completely different?
>
> What are you _actually_ trying to measure (and why)?  Without knowing this, we cannot help you.
>
> Note: Subversion does not send all of the file(s), only the diffs (which includes all the file if new, of course!).  This helps reduce network traffic and time.
>
> ~ mark c
Received on 2012-06-13 15:17:26 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.