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

Re: Why not just enforce auto-props with a hook script that sets the right properties

From: <kmradke_at_rockwellcollins.com>
Date: Tue, 10 Jun 2008 15:17:22 -0500

"Peter Kahn" <citizenkahn_at_gmail.com> wrote on 06/10/2008 02:46:05 PM:
> Is there a reason why I shouldn't take check-mime-type.pl a step further
> have my hook script set properties on newly added files according to a
> repository wide policy?

I essentially did part of this and it now resides in:

This script can run as a post-commit hook, or just on a repository to
add "svn:needs-lock" when missing on files. It creates a new revision,
using the python API to act directly on the repository. (No server
side working copy needed.)

This script could (and should) be extended to support the full
set of auto-props.

Personally, I think it is best to just abort the commit if something
isn't right, but we had a set of users who wanted us to clean
up after them, instead of nagging them. I wanted to explore
the python API anyway, so this script was born late one night...

Kevin R.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-10 22:17:55 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.