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

RE: Hook to limit file size

From: Kjell Harald Andersen <k.h.andersen_at_chipcon.com>
Date: 2005-11-30 11:02:29 CET

I've also tried to address that problem. As far as I can see, the svn
server side is not aware of the file sizes at all. Would it be a problem
to add the size to each file as a property or something that can be read
with svnlook?
I could do this using a client side script and a custom property, but
there is no way to ensure that the user will not fake a smaller file
size by manually set this property.

I guess the developers are busy with the upcoming 1.3 release, but it
would be nice to hear if they are aware of the problem.

thanks,
Kjell
 

> -----Original Message-----
> From: Simon Kitching [mailto:skitching@obsidium.com]
> Sent: 30. november 2005 03:33
> To: users@subversion.tigris.org
> Subject: Hook to limit file size
>
> Hi,
>
> As subversion administrator here, I've recently been bitten
> by a user committing a 600MB file to subversion. As there's
> no "svn obliterate"
> command, that required a complete repo dump, edit, reload to fix.
>
> I'd like to ensure that sort of thing doesn't happen again by
> defining a hook script that prevents addition of files over a
> certain size (eg 1MB). I've looked at the hook scripts in
> contrib, and the svnlook command, but can't see any easy way
> to determine the size of the committed data.
>
> Is counting the chars in "svnlook diff" the only way to do this?
>
> Thanks,
>
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 30 11:20:54 2005

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.