[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 to restrict mkdir

From: Reedick, Andrew <Andrew.Reedick_at_BellSouth.com>
Date: 2006-09-29 20:03:35 CEST

> -----Original Message-----
> From: Donald.Caprio@Sun.COM [mailto:Donald.Caprio@Sun.COM]
> Sent: Friday, September 29, 2006 1:58 PM
> To: users@subversion.tigris.org
> Subject: Pre-commit hook to restrict mkdir
>
> I'm new to subversion so I appoligize in advance for any
> stupid newbie questions.
>
> I'd like to restrict my users from creating top-level
> directories. After looking
> through the docs and FAQ's it appears that the best way would
> be to create a
> pre-commit hook. Am I on the right path or is there a better
> way? The Apache
> mod_dav_svn module would fit the bill but clients will be
> using command-line.
>
> I've done some poking around with the pre-commit script
> however I'm having some
> trouble figuring it all out.
>
> The command 'svn mkdir file:///repos/projectA -m "make
> initial project dir"
> generates the following hook variables:
>
> ***START pre-commit script. TXN=y REPOS=/repos
> author: caprio
> changed: A projectA/
> dirs-changed: /
> proplist:
> propget:
> ***END pre-commit script
>
> If dirs-changed = "/" and changed: = "A" would I be correct
> in interpreting that
> user wishes to create 'projectA' in the repos root dir?
>
> Any help/pointers would be greatly appreciated.
>
>

Use 'svnlook changed --transaction'

http://svnbook.red-bean.com/nightly/en/svn.ref.svnlook.c.changed.html

*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA624

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 29 20:04:24 2006

This is an archived mail posted to the Subversion Users mailing list.