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

Re: How to ignore importing files based on filesize?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 10 Feb 2009 07:18:16 -0500

On Tue, Feb 10, 2009 at 02:10, Shrinivasan <tshrinivasan_at_gmail.com> wrote:
> Friends.
> I want to keep a filesize limit for the repositories.
> as people often commit unwanted binary files and huge video files.
> http://svnbook.red-bean.com/en/1.0/ch07s02.html#svn-ch-7-sect-2.3.3
> This page explains to filtering using file names.
> I need to filer using the filesize.
> How to achieve this?

Easiest would be client-side, writing a wrapper script around the
Subversion client to check the sizes before committing.

If you have a large userbase, with no control of what client is used,
you have to do it server-side. Do you need to filter on size only, or
size & file type?

BTW, when you refer to the book, please use the current version (1.5),
not the 1.0 manual - unless you're running SVN 1.0


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-10 13:19:09 CET

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.