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

Re: SVN hook help

From: Ryan Schmidt <ryandesign_at_macports.org>
Date: Thu, 14 Aug 2008 04:26:48 -0500

On Aug 14, 2008, at 02:38, venkata prasad wrote:

> I want to place an SVN- hook for not allowing to add an element of
> size more than 200MB.

Ok. In the pre-commit hook, you would use "svnlook changed" to get a
list of changed files. You can then "svn cat" each file and pipe it
through "wc" to get a byte count. Note that the file will still be
transferred over the network to the server in its entirety, even
though the file will not be accepted into the repository due to your
restriction.

> Also dont want to allow adding weblogic.jar file for my repository.

Same deal: run "svnlook changed" to get the list of changed files,
and if weblogic.jar is listed, deny the commit.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-14 11:27:36 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.