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

Re: SVN File Size

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 16 Sep 2011 10:31:05 +0200

On Fri, Sep 16, 2011 at 07:59:34AM +0000, Stümpfig, Thomas wrote:
> Hi all,
> what is the reason that svn log does not tell me the actual file size. I would be more patient ;-), probably as a separate option or within -v
> All I can find about in the net is a pre/or post commit that does a svnlook cat operation. But this is an expensive operation.
> The Server should be able to deal with it during the "commit operation".

To obtain this size Subversion currently has to compute the full text
of the file.

The filesystem only records the size of each delta that belongs to the
full text. In some cases there is only one delta, in which case the file
size equals the expanded delta size, but in general a full text is
composed from several deltas.

Currently, the information printed by 'svn log' can be obtained without
computing the full text.

So what you're asking amounts to either a performance hit for 'svn log'
or to a new feature in the filesystem (record the size of the full
text of a file along with the changed-path data which 'svn log' reads).

I think the feature you are requesting is reasonable.
If you like, you can file an 'enhancement request' issue in our issue
tracker about this. Maybe somebody will have time to work on it.
(In case you know somebody who would like to work on this I'd like
to point out that we're always happy to help newcomers get started :)
Received on 2011-09-16 10:31:56 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.