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

Re: svn commit: rev 1784 - trunk trunk/subversion/include trunk/subversion/libsvn_wc trunk/subversion/libsvn_subr

From: Mark Benedetto King <bking_at_answerfriend.com>
Date: 2002-04-26 18:15:22 CEST

On Fri, Apr 26, 2002 at 10:50:39AM -0500, Ben Collins-Sussman wrote:
>
> If the svn:executable property merely *exists* then chmod +x will be
> run at commit or update time. The exact value is irrelevant.
> If the user removes the property in a commit, or receives a removal of
> the property, then chmod -x is run.
>
> I think I'll switch to that model now.
>

What if, instead of hardcoding the mapping between "svn:executable"
and the functionality "chmod +x", why not generalize, and let the
user configure event-handlers for properties? For lack of syntax:

<action property="svn:executable" event="update">
        chmod +x %
</action>

This pushes all platform dependency onto the end-user, and
is a powerful interface to boot.

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 26 18:19:02 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.