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

Re: pre-commit hook: dont allow given diretory's and file-types

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-07-12 00:26:48 CEST

On Jul 11, 2007, at 08:45, Pieter wrote:

> I would like to have a pre-commit hook, that doesn't allow the
> commit if
> some special directroy's are in it, neither some file-types.
> So in order to do the commit, the user has first to ignore them.
>
> I'm not really experienced in perl, so it would be great if someone
> could
> help me with this? I searched in the mailinglist, but didn't find
> anything
> :-(
>
> The directory's to ignore are:
> \bin
> \debug
> end the file-types to ignore are:
> *.suo
> *.user

This shouldn't be too difficult. In the pre-commit hook, you'll want
to run "svnlook changed" on the transaction, and for each line of
output, see if it matches one of the things you want to disallow.

Or you may be able to just write a configuration file for svnperms.py
to do this for you.

http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 12 00:26:45 2007

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.