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

Hook to limit file size

From: Simon Kitching <skitching_at_obsidium.com>
Date: 2005-11-30 03:33:01 CET

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
Received on Wed Nov 30 03:33:38 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.