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

Re: [Q] How to disallow an import to a repos basedirectory (but to any subdirs)?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-18 15:17:25 CEST

On May 18, 2005, at 8:12 AM, <vf@web.de> <vf@web.de> wrote:

> Hello,
>
> we want to dissallow imports in the basedirectory of our repo. For
> instance, if our repository ist 'home', we want to dissalow an
> import to 'home' but allow imports to any subdirectory of home
> (e.g. home/existing_dir/imported_dir)
>
> Can anyone explain if this is possible with Subversion and how I
> can do this?

Yes, write a pre-commit hook that disallows any incoming commits that
attempt to add paths of the form '/home/X', but allow adding of /home/
X/Y'. Read chapter 5 about hooks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 18 15:24:31 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.