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

Re: How to block files if the exceed number

From: Andy Levy <andy.levy_at_gmail.com>
Date: Mon, 27 Jul 2009 06:56:51 -0400

On Sun, Jul 26, 2009 at 08:32, Ryan
Schmidt<subversion-2009b_at_ryandesign.com> wrote:
> On Jul 26, 2009, at 07:21, Ilan Yaniv wrote:
>
>> I have this doc files that I want to block if they exceed the size
>> of X kb.
>>
>
> You would write a pre-commit hook script on the server. In it, you
> would use svnlook to get a copy of each file in the transaction, and
> if it is took big, exit from the hook script with a nonzero status
> code and print an error message.

Isn't it also possible to set a limit on the incoming data size via an
Apache directive? Assuming the OP is serving via Apache, that is.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2375822

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-27 12:57: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.