[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: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Fri, 16 Sep 2011 10:14:02 +0200

On Fri, Sep 16, 2011 at 9:59 AM, Stümpfig, Thomas
<thomas.stuempfig_at_siemens.com> 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”.

Help is on the way in 1.7:

[[[
-bash-3.00$ svnlook help filesize
filesize: usage: svnlook filesize REPOS_PATH PATH_IN_REPOS

Print the size (in bytes) of the file located at PATH_IN_REPOS as
it is represented in the repository.

Valid options:
  -r [--revision] ARG : specify revision number ARG
  -t [--transaction] ARG : specify transaction name ARG
]]]

This can be used in pre/post-commit hooks to inspect the size of a file.

-- 
Johan
Received on 2011-09-16 10:14:55 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.